/* ═══════════════════════════════════════════════════════════════
   NOTIFIKACE — "Upozornit na sklad" & "Upozornit na slevu"
   ═══════════════════════════════════════════════════════════════ */

/* ─── Tlačítka na detailu produktu ───────────────────────────── */

.notif-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-family: inherit;
    color: #374151;
    cursor: pointer;
    transition: all .2s;
}

.notif-btn:hover {
    border-color: #9ca3af;
    background: #f9fafb;
}

.notif-btn:disabled {
    opacity: .5;
    cursor: wait;
}

.notif-btn-stock {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.notif-btn-stock:hover {
    background: #1a1a1a;
    color: #fff;
}

.notif-btn-stock:hover svg {
    stroke: #fff;
}

.notif-btn-price {
    font-size: 12px;
    color: #6b7280;
    border-color: #e5e7eb;
    padding: 6px 12px;
    margin-bottom: 8px;
}

.notif-btn-price:hover {
    color: #374151;
    border-color: #9ca3af;
}

/* ─── Potvrzení po přihlášení ────────────────────────────────── */

.notif-confirmed {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #16a34a;
    padding: 8px 0;
}

/* ─── E-mail modal pro nepřihlášené ──────────────────────────── */

.notif-email-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 9998;
}

.notif-email-overlay.open {
    display: block;
}

.notif-email-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    width: 90%;
    max-width: 400px;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.notif-email-modal.open {
    display: block;
}

.notif-email-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #9ca3af;
    cursor: pointer;
    line-height: 1;
}

.notif-email-close:hover {
    color: #374151;
}

.notif-email-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

.notif-email-desc {
    margin: 0 0 20px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.notif-email-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notif-email-field {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    outline: none;
    transition: border-color .2s;
}

.notif-email-field:focus {
    border-color: #1a1a1a;
}

.notif-email-submit {
    padding: 12px 20px;
    font-size: 14px;
}

.notif-email-msg {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
}

.notif-msg-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.notif-msg-ok {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ─── Varianta — "Vyprodáno" s mini upozornění ───────────────── */

.variant-notif-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--color-text, #1a1a1a);
    border: none;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    padding: 8px 14px;
    margin-top: 6px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: .06em;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.variant-notif-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #444;
    z-index: -1;
    transition: width .5s ease;
}

.variant-notif-btn:hover::after {
    width: 100%;
}

.variant-notif-btn:disabled {
    opacity: .5;
    cursor: wait;
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 600px) {
    .notif-email-modal {
        padding: 24px;
        width: 94%;
    }
}
