.st-countdown,
.st-countdown-badge {
    --st-countdown-bg: var(--st-accent-bg, var(--st-accent, #111827));
    --st-countdown-fg: var(--st-accent-fg, #ffffff);
    --st-countdown-cell: rgba(255, 255, 255, 0.16);
    --st-countdown-border: transparent;
    background: var(--st-countdown-bg);
    color: var(--st-countdown-fg);
    border: 1px solid var(--st-countdown-border);
}

.st-countdown--sale {
    --st-countdown-bg: #dc2626;
    --st-countdown-fg: #ffffff;
}

.st-countdown--dark {
    --st-countdown-bg: #111827;
    --st-countdown-fg: #ffffff;
}

.st-countdown--light {
    --st-countdown-bg: var(--st-bg-alt, #f6f6f7);
    --st-countdown-fg: var(--st-fg, #111827);
    --st-countdown-cell: var(--st-surface, #ffffff);
    --st-countdown-border: var(--st-border, #ececec);
}

.st-countdown[hidden],
.st-countdown-badge[hidden] {
    display: none !important;
}

/* Sección del inicio */
.st-countdown--section {
    margin: 28px auto;
    padding: 26px 0;
    border-left: 0;
    border-right: 0;
}

.st-countdown__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px 28px;
}

.st-countdown__copy {
    flex: 1 1 260px;
    min-width: 0;
}

.st-countdown--section .st-countdown__title {
    margin: 0;
    color: inherit;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    line-height: 1.15;
}

.st-countdown__subtitle {
    margin: 6px 0 0;
    color: inherit;
    font-size: 15px;
    opacity: 0.85;
}

.st-countdown__clock {
    display: flex;
    gap: 10px;
}

.st-countdown__unit {
    display: grid;
    justify-items: center;
    min-width: 66px;
    padding: 10px 8px 8px;
    border-radius: var(--st-radius, 12px);
    background: var(--st-countdown-cell);
}

.st-countdown__unit[hidden] {
    display: none;
}

.st-countdown__unit strong {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.st-countdown__unit small {
    margin-top: 4px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.8;
}

.st-countdown:not(.st-countdown--light) .st-countdown__button {
    background: #ffffff;
    border-color: #ffffff;
    color: #111827;
}

/* Barra superior */
.st-countdown--bar {
    border-width: 0 0 1px;
    font-size: 13px;
}

.st-countdown__bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 14px;
    padding: 7px 16px;
    text-align: center;
}

.st-countdown__bar-clock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.st-countdown__link {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Ficha de producto */
.st-countdown--product {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    padding: 10px 14px;
    border-radius: var(--st-radius, 12px);
    font-size: 14px;
}

.st-countdown--product > .bi {
    font-size: 20px;
}

.st-countdown__product-copy {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
}

.st-countdown--product .st-countdown__title {
    font-weight: 700;
}

.st-countdown__product-clock {
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* Etiqueta en la tarjeta */
.st-countdown-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    padding: 3px 8px;
    border-radius: var(--st-radius-pill, 999px);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .st-countdown--section {
        margin: 18px auto;
        padding: 20px 0;
    }

    .st-countdown__clock {
        width: 100%;
        justify-content: space-between;
        gap: 6px;
    }

    .st-countdown__unit {
        flex: 1 1 0;
        min-width: 0;
    }

    .st-countdown__unit strong {
        font-size: 24px;
    }

    .st-countdown__button {
        width: 100%;
        justify-content: center;
    }
}
