/* ==========================================================================
   InSono — Benachrichtigungen
   Replaces the Shopify "cart-notification" with a generic toast stack
   ========================================================================== */

.notification-stack {
    position: fixed;
    z-index: 1400;
    top: calc(var(--header-height) + 12px);
    right: 16px;
    display: grid;
    width: min(380px, calc(100% - 32px));
    gap: 10px;
    pointer-events: none;
}

.notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    pointer-events: auto;
    animation: notification-in 260ms var(--ease-out);
}

.notification.is-leaving {
    animation: notification-out 200ms ease forwards;
}

@keyframes notification-in {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
}

@keyframes notification-out {
    to {
        opacity: 0;
        transform: translateX(20px);
    }
}

.notification__icon {
    display: grid;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 50%;
}

.notification__icon svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.notification__body {
    flex: 1;
    display: grid;
    gap: 2px;
}

.notification__title {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.notification__text {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.notification__close {
    display: grid;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 50%;
    color: var(--soft);
}

.notification__close:hover {
    background: rgba(30, 33, 29, 0.06);
    color: var(--text);
}

.notification__close svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

/* ---- Varianten ---------------------------------------------------------- */

.notification--success .notification__icon {
    background: var(--success-soft);
    color: var(--success);
}

.notification--error .notification__icon {
    background: var(--danger-soft);
    color: var(--danger);
}

.notification--warning .notification__icon {
    background: var(--warning-soft);
    color: var(--warning);
}

.notification--info .notification__icon {
    background: var(--header-accent-soft);
    color: var(--header-accent);
}

/* ---- "add to cart" confirmation ----------------------------------------- */

.notification--cart {
    display: grid;
    gap: 12px;
}

.notification--cart .notification__product {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification--cart .notification__product img {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-xs);
    object-fit: cover;
}

.notification--cart .notification__actions {
    display: grid;
    gap: 8px;
}

.notification--cart .btn {
    min-height: 42px;
    font-size: 14px;
}

/* ---- Inline notice (in the page flow) ----------------------------------- */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.5;
}

.alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.alert--success {
    border-color: rgba(47, 125, 79, 0.25);
    background: var(--success-soft);
    color: var(--success);
}

.alert--error {
    border-color: rgba(179, 38, 30, 0.25);
    background: var(--danger-soft);
    color: var(--danger);
}

.alert--warning {
    border-color: rgba(201, 130, 45, 0.25);
    background: var(--warning-soft);
    color: var(--warning);
}

.alert--info {
    border-color: var(--line-strong);
    background: rgba(30, 33, 29, 0.04);
    color: var(--muted);
}

@media screen and (max-width: 749px) {
    .notification-stack {
        top: auto;
        right: 12px;
        bottom: 12px;
        left: 12px;
        width: auto;
    }
}
