body.hcu-modal-active {
    overflow: hidden;
}

.hcu-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: var(--hcu-overlay-bg, rgba(13, 31, 36, 0.52));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
}

.hcu-modal {
    position: relative;
    width: min(980px, 100%);
    max-height: 92vh;
    overflow: auto;
    background: var(--hcu-modal-bg, #fffaf7);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
    text-align: center;
    color: var(--hcu-text-color, #153d45);
    font-family: inherit;
}

.hcu-top-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.hcu-close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 0;
    border-radius: 50%;
    background: var(--hcu-close-btn-bg, #ffffff);
    color: var(--hcu-close-btn-text, #153d45);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 14px rgba(0,0,0,0.08);
}

.hcu-timer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--hcu-timer-bg, #173f47);
    color: var(--hcu-timer-text, #fff);
    font-weight: 600;
    margin-bottom: 12px;
}

.hcu-timer-value {
    display: inline-flex;
    min-width: 58px;
    justify-content: center;
    background: rgba(255,255,255,0.15);
    padding: 3px 8px;
    border-radius: 999px;
    font-variant-numeric: tabular-nums;
}

.hcu-title {
    margin: 4px 0 6px;
    color: var(--hcu-title-color, #173f47);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.hcu-subtitle {
    margin: 0 auto 18px;
    color: var(--hcu-subtitle-color, #173f47);
    font-size: 17px;
    max-width: 620px;
}

.hcu-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 12px;
}

.hcu-product-card {
    position: relative;
    background: var(--hcu-card-bg, #fff);
    border: 1px solid var(--hcu-card-border, rgba(23, 63, 71, 0.13));
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 6px 20px rgba(23, 63, 71, 0.07);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.hcu-product-card.is-added,
.hcu-product-card.is-selected {
    outline: 2px solid rgba(23, 63, 71, 0.45);
}

.hcu-product-card.is-locked:not(.is-selected) {
    opacity: 0.55;
}

.hcu-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    background: var(--hcu-badge-bg, #173f47);
    color: var(--hcu-badge-text, #fff);
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hcu-product-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 0.72;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hcu-image-bg, #fbf7f2);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 10px;
}

.hcu-product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hcu-product-name {
    color: var(--hcu-title-color, #173f47);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.35;
    min-height: 42px;
    margin-bottom: 9px;
}

.hcu-prices {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 9px;
    margin-bottom: 12px;
    direction: rtl;
}

.hcu-old-price {
    color: #9c7d76;
    text-decoration: line-through;
    font-size: 14px;
}

.hcu-new-price {
    color: var(--hcu-title-color, #173f47);
    font-weight: 800;
    font-size: 19px;
}

.hcu-add-product,
.hcu-select-product,
.hcu-add-bundle,
.hcu-continue {
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 800;
    font-family: inherit;
    transition: transform 0.12s ease, opacity 0.12s ease;
}

.hcu-add-product,
.hcu-select-product {
    margin-top: auto;
    background: var(--hcu-add-btn-bg, #2f2727);
    color: var(--hcu-add-btn-text, #fff);
    padding: 10px 14px;
    font-size: 15px;
}

.hcu-add-product:hover,
.hcu-select-product:hover,
.hcu-add-bundle:hover,
.hcu-continue:hover {
    transform: translateY(-1px);
}

.hcu-add-product:disabled,
.hcu-select-product:disabled,
.hcu-add-bundle:disabled {
    cursor: default;
    opacity: 0.75;
    transform: none;
}

.hcu-add-product.is-added,
.hcu-select-product.is-selected,
.hcu-add-bundle.is-added {
    background: var(--hcu-added-btn-bg, #173f47);
    color: var(--hcu-added-btn-text, #fff);
}

.hcu-bogo-controls {
    background: var(--hcu-card-bg, #fff);
    border: 1px solid var(--hcu-card-border, rgba(23, 63, 71, 0.13));
    border-radius: 16px;
    padding: 12px;
    margin: 12px auto 4px;
    max-width: 620px;
}

.hcu-bogo-message {
    color: var(--hcu-title-color, #173f47);
    font-weight: 800;
    margin-bottom: 10px;
}

.hcu-add-bundle {
    background: var(--hcu-bundle-btn-bg, #173f47);
    color: var(--hcu-bundle-btn-text, #fff);
    padding: 12px 24px;
    font-size: 16px;
    min-width: min(100%, 300px);
}

.hcu-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.hcu-note {
    margin: 0;
    color: var(--hcu-note-color, #5f7175);
    font-size: 13px;
}

.hcu-continue {
    background: var(--hcu-continue-btn-bg, #173f47);
    color: var(--hcu-continue-btn-text, #fff);
    padding: 13px 28px;
    font-size: 17px;
    min-width: min(100%, 320px);
}

.hcu-top-continue {
    min-width: 0;
    width: auto;
    padding: 10px 16px;
    font-size: 14px;
}

.hcu-continue.is-loading {
    opacity: 0.75;
    cursor: wait;
    transform: none;
}

.hcu-continue.hcu-after-add {
    background: var(--hcu-continue-after-bg, #2f2727);
    color: var(--hcu-continue-after-text, #fff);
}

@media (max-width: 780px) {
    .hcu-overlay {
        align-items: flex-end;
        padding: 8px;
    }

    .hcu-modal {
        max-height: 94vh;
        border-radius: 20px 20px 0 0;
        padding: 18px 12px 14px;
    }

    .hcu-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .hcu-product-card {
        padding: 10px;
    }

    .hcu-product-name {
        font-size: 13px;
        min-height: 38px;
    }

    .hcu-new-price {
        font-size: 17px;
    }

    .hcu-old-price {
        font-size: 12px;
    }

    .hcu-timer {
        font-size: 13px;
        padding: 7px 12px;
    }

    .hcu-top-actions {
        gap: 8px;
        margin-bottom: 8px;
    }

    .hcu-top-continue {
        flex: 1 1 auto;
        padding: 10px 12px;
        font-size: 13px;
    }
}

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