:root {
    --stfts-blue: #005b9f;
    --stfts-blue-dark: #003f7d;
    --stfts-yellow: #f2b705;
    --stfts-ink: #101820;
}

body.stfts-modal-open {
    overflow: hidden;
}

.stfts-special[hidden],
.stfts-reopen[hidden] {
    display: none !important;
}

.stfts-special {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 20px;
}

.stfts-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 18, 30, .72);
    backdrop-filter: blur(3px);
}

.stfts-dialog {
    position: relative;
    z-index: 1;
    width: min(940px, calc(100vw - 40px));
    max-height: calc(100vh - 40px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
    animation: stfts-enter .24s ease-out;
}

@keyframes stfts-enter {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.stfts-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #fff;
    background: rgba(16, 24, 32, .88);
    border: 2px solid rgba(255, 255, 255, .85);
    border-radius: 50%;
    font: 700 28px/1 Arial, sans-serif;
    cursor: pointer;
}

.stfts-close:hover,
.stfts-close:focus {
    background: #000;
    outline: 3px solid rgba(242, 183, 5, .75);
}

.stfts-hero {
    position: relative;
    min-height: 500px;
    background: #e9eef3;
}

.stfts-hero img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.stfts-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    max-width: calc(100% - 80px);
    padding: 9px 13px;
    color: var(--stfts-ink);
    background: var(--stfts-yellow);
    border-radius: 5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    font: 800 13px/1.2 Arial, sans-serif;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.is-sold .stfts-badge {
    color: #fff;
    background: #b42318;
}

.stfts-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 42px 36px 34px;
    color: var(--stfts-ink);
}

.stfts-stock {
    margin: 0 0 8px;
    color: var(--stfts-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.stfts-content h2 {
    margin: 0 0 12px;
    color: var(--stfts-ink);
    font-size: clamp(25px, 2.4vw, 35px);
    line-height: 1.12;
}

.stfts-description,
.stfts-sold-message {
    margin: 0 0 18px;
    color: #475467;
    font-size: 15px;
    line-height: 1.5;
}

.stfts-pricing {
    display: flex;
    align-items: flex-end;
    gap: 22px;
    padding: 16px 0 4px;
    border-top: 1px solid #e4e7ec;
}

.stfts-pricing span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stfts-pricing small {
    color: #667085;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.stfts-regular del {
    color: #667085;
    font-size: 20px;
}

.stfts-sale strong {
    color: #b42318;
    font-size: 34px;
    line-height: 1;
}

.stfts-price-note {
    margin: 5px 0 20px;
    color: #667085;
    font-size: 12px;
}

.stfts-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: 8px;
}

.stfts-actions a {
    min-height: 45px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 13px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    text-decoration: none !important;
}

.stfts-primary-action {
    color: #fff !important;
    background: var(--stfts-blue);
    border: 1px solid var(--stfts-blue);
}

.stfts-primary-action:hover,
.stfts-primary-action:focus {
    color: #fff !important;
    background: var(--stfts-blue-dark);
    border-color: var(--stfts-blue-dark);
}

.stfts-secondary-action {
    color: var(--stfts-blue) !important;
    background: #fff;
    border: 1px solid var(--stfts-blue);
}

.stfts-secondary-action:hover,
.stfts-secondary-action:focus {
    color: #fff !important;
    background: var(--stfts-blue);
}

.stfts-reopen {
    position: fixed;
    right: 18px;
    bottom: 82px;
    z-index: 99990;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    color: #ffffff !important;
    background: #ec4899 !important;
    border: 1px solid #db2777 !important;
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(16, 24, 32, .25);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    background-image: none !important;
    opacity: 1 !important;
    filter: none !important;
    transition: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.stfts-reopen:hover,
.stfts-reopen:focus,
.stfts-reopen:active {
    color: #ffffff !important;
    background: #ec4899 !important;
    border-color: #db2777 !important;
    outline: 3px solid rgba(236, 72, 153, .25);
}

@media (max-width: 760px) {
    .stfts-special {
        align-items: end;
        padding: 10px;
    }

    .stfts-dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        grid-template-columns: 1fr;
        overflow-y: auto;
        border-radius: 12px 12px 8px 8px;
    }

    .stfts-hero {
        min-height: 0;
        height: min(34vh, 260px);
    }

    .stfts-content {
        padding: 22px 18px 18px;
    }

    .stfts-content h2 {
        font-size: 24px;
    }

    .stfts-description {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .stfts-pricing {
        padding-top: 12px;
    }

    .stfts-sale strong {
        font-size: 30px;
    }

    .stfts-actions {
        grid-template-columns: 1fr;
    }

    .stfts-reopen {
        right: 10px;
        bottom: 72px;
        max-width: calc(100vw - 20px);
    }

}

@media (prefers-reduced-motion: reduce) {
    .stfts-dialog {
        animation: none;
    }
}
