/* =====================================================
   Naranja Ventas Recientes - Estilos Frontend
   Compatible con PHP 8.2 | naranjasonline.net
   ===================================================== */

#nvr-notification-container {
    position: fixed;
    z-index: 99999;
    max-width: 320px;
    width: calc(100% - 40px);
    pointer-events: none;
}

/* Posiciones */
#nvr-notification-container.nvr-bottom-left  { bottom: 20px; left: 20px; }
#nvr-notification-container.nvr-bottom-right { bottom: 20px; right: 20px; }
#nvr-notification-container.nvr-top-left     { top: 20px;    left: 20px; }
#nvr-notification-container.nvr-top-right    { top: 20px;    right: 20px; }

/* Notificación individual */
.nvr-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    pointer-events: all;
    cursor: pointer;
    border-top: 3px solid var(--nvr-accent, #e65c00);
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform, opacity;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: var(--nvr-bg, #ffffff);
    color: var(--nvr-text, #333333);
}

/* Animación entrada desde la derecha para posición right */
.nvr-bottom-right .nvr-notification,
.nvr-top-right .nvr-notification {
    transform: translateX(40px);
}

.nvr-notification.nvr-show {
    opacity: 1;
    transform: translateX(0);
}

.nvr-notification.nvr-hide {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Imagen del producto */
.nvr-img {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f5f5f5;
}

.nvr-img-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff9a3c, #e65c00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

/* Contenido de texto */
.nvr-content {
    flex: 1;
    min-width: 0;
}

.nvr-message {
    font-size: 13px;
    line-height: 1.4;
    margin: 0 0 3px;
    opacity: 0.85;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nvr-product {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--nvr-accent, #e65c00);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}

.nvr-product:hover {
    text-decoration: underline;
}

.nvr-time {
    font-size: 11px;
    opacity: 0.55;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nvr-time::before {
    content: '🕐';
    font-size: 10px;
}

/* Botón cerrar */
.nvr-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0.4;
    font-size: 14px;
    line-height: 1;
    color: inherit;
    flex-shrink: 0;
    transition: opacity 0.2s;
    border-radius: 4px;
}

.nvr-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.05);
}

/* Hover effect */
.nvr-notification:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateX(0) scale(1.01);
}

/* Mobile */
@media (max-width: 480px) {
    #nvr-notification-container {
        max-width: calc(100% - 24px);
        left: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
    }

    .nvr-notification {
        padding: 12px 14px;
    }
}
