/* =========================================================
   Pamela Shop - Notifications UI
   ========================================================= */

.notification-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, background 0.2s ease;
}

.notification-bell:hover,
.notification-bell:focus {
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.notification-bell__icon {
    font-size: 20px;
    line-height: 1;
}

.notification-bell__badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #d6336c;
    border: 2px solid #fff;
}

.notification-preview {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1000;
    width: min(390px, calc(100vw - 30px));
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.notification-preview.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-preview__item {
    display: block;
    padding: 12px;
    border-radius: 12px;
    color: #333;
    text-decoration: none;
    transition: background 0.18s ease;
}

.notification-preview__item:hover,
.notification-preview__item:focus {
    color: #333;
    text-decoration: none;
    background: #faf3f6;
}

.notification-preview__item.is-unread {
    background: #fff5f8;
}

.notification-preview__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
}

.notification-preview__message {
    margin: 5px 0 0;
    color: #666;
    font-size: 13px;
    line-height: 1.8;
}

.notification-preview__time {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 11px;
}

.notification-preview__footer {
    display: block;
    margin-top: 8px;
    padding: 10px;
    border-top: 1px solid #eee;
    text-align: center;
    color: #d6336c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.notifications-page {
    padding: 35px 0 60px;
    min-height: 60vh;
}

.notifications-page__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.notifications-page__eyebrow {
    color: #d6336c;
    font-size: 13px;
    font-weight: 700;
}

.notifications-page h1 {
    margin: 5px 0 8px;
    font-size: 30px;
    font-weight: 800;
}

.notifications-page__header p {
    margin: 0;
    color: #777;
}

.notification-action-button,
.notification-card__action button {
    border: 0;
    border-radius: 10px;
    padding: 9px 14px;
    cursor: pointer;
    font-family: inherit;
}

.notification-action-button {
    color: #d6336c;
    background: #fff0f5;
}

.notifications-list {
    display: grid;
    gap: 12px;
}

.notification-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.notification-card.is-unread {
    border-color: #f4c4d3;
    background: #fff9fb;
}

.notification-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff0f5;
    color: #d6336c;
    font-size: 21px;
    font-weight: 800;
}

.notification-card__topline {
    display: flex;
    align-items: center;
    gap: 9px;
}

.notification-card h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
}

.notification-card p {
    margin: 6px 0 4px;
    color: #555;
    line-height: 1.8;
}

.notification-card time {
    color: #999;
    font-size: 11px;
}

.notification-unread-label {
    padding: 2px 7px;
    border-radius: 999px;
    color: #d6336c;
    background: #ffe4ee;
    font-size: 10px;
    font-weight: 800;
}

.notification-card__action button {
    color: #fff;
    background: #d6336c;
}

.notifications-empty {
    max-width: 560px;
    margin: 70px auto;
    padding: 45px 25px;
    border: 1px solid #eee;
    border-radius: 20px;
    text-align: center;
    background: #fff;
}

.notifications-empty__icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.notifications-empty h2 {
    margin: 0 0 8px;
}

.notifications-empty p {
    margin: 0;
    color: #777;
    line-height: 1.9;
}

.notifications-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 25px;
}

.notifications-pagination a {
    color: #d6336c;
    text-decoration: none;
    font-weight: 700;
}

@media (max-width: 767px) {
    .notification-preview {
        right: auto;
        left: 0;
    }

    .notifications-page__header {
        align-items: stretch;
        flex-direction: column;
    }

    .notification-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .notification-card__icon {
        width: 42px;
        height: 42px;
    }

    .notification-card__action {
        grid-column: 2;
    }
}

.notification-header-control {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.notification-preview form {
    margin: 0;
}

.notification-preview__item {
    width: 100%;
    border: 0;
    text-align: right;
    font-family: inherit;
    background: transparent;
    cursor: pointer;
}
