/* ================================================================
   EPI — Système de notifications nouveaux produits
   ================================================================ */

.epi-notif-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    max-height: 80vh;
    overflow: hidden;
    pointer-events: none;
}

.epi-notif-toast {
    pointer-events: auto;
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: var(--epi-radius, 14px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 2px 8px rgba(227,6,19,0.10);
    overflow: hidden;
    max-width: 380px;
    min-width: 320px;
    opacity: 0;
    transform: translateX(120%);
    animation: epiNotifSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid var(--epi-red, #e30613);
    position: relative;
}

.epi-notif-toast:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 4px 12px rgba(227,6,19,0.15);
}

.epi-notif-toast.epi-notif-exit {
    animation: epiNotifSlideOut 0.4s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.epi-notif-toast-image {
    width: 90px;
    min-height: 90px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.epi-notif-toast-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.epi-notif-toast-body {
    flex: 1;
    padding: 12px 36px 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.epi-notif-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--epi-red, #e30613);
    line-height: 1;
}

.epi-notif-badge i {
    font-size: 12px;
    animation: epiNotifBell 1s ease-in-out 0.5s 2;
}

.epi-notif-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.epi-notif-product-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.epi-notif-product-price {
    font-weight: 700;
    color: var(--epi-red, #e30613);
}

.epi-notif-product-cat {
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.epi-notif-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    color: #999;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
}

.epi-notif-close:hover {
    background: rgba(227,6,19,0.1);
    color: var(--epi-red, #e30613);
}

.epi-notif-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--epi-red, #e30613);
    border-radius: 0 3px 0 0;
    animation: epiNotifProgress 6s linear forwards;
}

/* Badge compteur sur l'icône cloche */
.epi-notif-bell-wrap {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 99998;
    display: none;
}

.epi-notif-bell-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--epi-red, #e30613);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(227,6,19,0.35);
    transition: all 0.3s ease;
    position: relative;
}

.epi-notif-bell-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(227,6,19,0.45);
}

.epi-notif-bell-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #1a1a2e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

/* Animations */
@keyframes epiNotifSlideIn {
    0%   { opacity: 0; transform: translateX(120%); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes epiNotifSlideOut {
    0%   { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(120%); }
}

@keyframes epiNotifBell {
    0%, 100% { transform: rotate(0deg); }
    20%      { transform: rotate(15deg); }
    40%      { transform: rotate(-10deg); }
    60%      { transform: rotate(8deg); }
    80%      { transform: rotate(-5deg); }
}

@keyframes epiNotifProgress {
    0%   { width: 100%; }
    100% { width: 0%; }
}

/* Responsive */
@media (max-width: 480px) {
    .epi-notif-container {
        right: 10px;
        left: 10px;
        bottom: 80px;
    }
    .epi-notif-toast {
        max-width: 100%;
        min-width: auto;
    }
    .epi-notif-toast-image {
        width: 70px;
        min-height: 70px;
    }
    .epi-notif-bell-wrap {
        bottom: 80px;
        right: 10px;
    }
}
