/**
 * Tryb Premiery — modal zapisu (klon stock-notify.css, własne klasy/nonce),
 * blur w karcie sklepu (tylko tam — na stronie produktu zdjęcia zostają
 * widoczne), licznik i przycisk CTA.
 */

:root.babuszka-premiere-modal-open {
    overflow: hidden;
}

.babuszka-premiere-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.babuszka-premiere-modal.is-open {
    display: flex;
}

.babuszka-premiere-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.babuszka-premiere-modal__content {
    position: relative;
    z-index: 1;
    width: min(92vw, 460px);
    background: var(--color-white);
    border-radius: 16px;
    padding: 28px 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.babuszka-premiere-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.babuszka-premiere-modal__title {
    font-size: 20px;
    margin: 0 0 8px;
    color: var(--color-primary);
}

.babuszka-premiere-modal__subtitle {
    margin: 0 0 18px;
    color: var(--color-text-secondary);
    font-size: 14px;
}

.babuszka-premiere-modal__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.babuszka-premiere-modal__field label {
    font-size: 13px;
    color: var(--color-primary);
}

.babuszka-premiere-modal__field input {
    width: 100%;
    border: 1px solid var(--color-input-border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    font-size: 14px;
}

.babuszka-premiere-modal__actions {
    display: flex;
    justify-content: flex-end;
}

.babuszka-premiere-modal__actions button {
    background: var(--color-primary);
    color: var(--color-secondary);
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    cursor: pointer;
    font-size: 14px;
}

.babuszka-premiere-modal__message {
    margin-top: 12px;
    font-size: 13px;
}

.babuszka-premiere-modal__message.is-success { color: var(--color-success); }
.babuszka-premiere-modal__message.is-error { color: var(--color-error); }
.babuszka-premiere-modal__message.is-loading { color: var(--color-text-muted); }

/* ===== Karta w loopie sklepu — jedyne miejsce z blurem ===== */

.product-card-image--premiere img {
    filter: blur(18px);
    transform: scale(1.1); /* ukryj rozmyte krawędzie */
}

/* Biały tekst z cieniem bezpośrednio na zblurowanym zdjęciu (bez tła). */
.product-card-countdown {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px;
    color: var(--color-white);
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    /* .product-card-image img siedzi na z-index:1 (100 na hover karty) —
       bez tego licznik chowa się pod zblurowanym zdjęciem. */
    z-index: 150;
    pointer-events: none;
}

/* Nazwa premiery Lobsterem (krótki nagłówek -- zgodnie ze styles.md). */
.product-card-countdown .premiere-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.2;
}

/* Cyfry zostają w Helveticę z tabular-nums -- w Lobsterze cyfry mają
   różne szerokości, licznik "skakałby" co sekundę. */
.product-card-countdown .premiere-timer {
    font-size: 1.1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.babuszka-premiere-me {
    background: var(--color-primary);
    color: var(--color-secondary);
    border-radius: 999px;
}

.product-card-arrow-btn.babuszka-premiere-me {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 12px;
    text-transform: uppercase;
}

.product-card-arrow-btn.babuszka-premiere-me svg {
    width: 1.75rem;
    height: 1.75rem;
    flex: 0 0 auto;
}

/* ===== Strona produktu — bez blura, tylko licznik + przycisk ===== */

.single-product-premiere-countdown {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 12px 0 20px;
    padding: 14px 18px;
    /* Strona produktu ma kremowe tło (= --color-secondary), więc kremowy
       box się z nią zlewał -- jasny neutralny szary z palety. */
    background: var(--color-input-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
}

.single-product-premiere-countdown .premiere-label {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-primary);
}

.single-product-premiere-countdown .premiere-timer {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    font-variant-numeric: tabular-nums;
}

.single-product-add-to-cart.babuszka-premiere-me {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.single-product-add-to-cart.babuszka-premiere-me svg {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}
