/* ═══════════════════════════════════════════════════
   Notification Panel — Light Clean Premium
   ═══════════════════════════════════════════════════ */

/* ─── Panel Container (full-screen overlay) ────────── */
.notif-panel{display:none;background:#fff;overflow:hidden}
.notif-panel.open{
  display:flex;flex-direction:column;
  position:fixed;inset:0;z-index:100002;
  animation:notifSheetUp .28s cubic-bezier(.32,.72,0,1) both
}

/* ─── Header ───────────────────────────────────────── */
.notif-panel-header{
  padding:14px 16px;background:#fff;border-bottom:1px solid #f0f0f0;
  display:flex;justify-content:space-between;align-items:center;
  flex-shrink:0;
  padding-top:max(14px, env(safe-area-inset-top, 14px))
}
.notif-panel-header h4{margin:0;font-size:16px;font-weight:700;color:#1a1a1a}
.notif-panel-header .notif-header-actions{display:flex;align-items:center;gap:8px}
.notif-panel-header .notif-mark-read{background:none;border:none;color:#ce2029;font-size:12px;font-weight:600;cursor:pointer;padding:4px 8px;border-radius:6px;transition:background .15s}
.notif-panel-header .notif-mark-read:hover{background:rgba(206,32,41,.06)}
.notif-panel-close{background:none;border:none;color:#999;font-size:20px;cursor:pointer;padding:4px;line-height:1;border-radius:8px;transition:background .15s}
.notif-panel-close:hover{background:#f3f4f6;color:#333}

/* ─── Filter Pills ─────────────────────────────────── */
.notif-filters{display:flex;gap:6px;padding:8px 14px;border-bottom:1px solid #f0f0f0;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.notif-filters::-webkit-scrollbar{display:none}
.notif-filter-pill{padding:4px 12px;border-radius:14px;font-size:11px;font-weight:500;background:#f3f4f6;color:#666;white-space:nowrap;border:none;cursor:pointer;transition:all .15s}
.notif-filter-pill.active{background:#ce2029;color:#fff;font-weight:600}

/* ─── Filter Pills (flex-shrink:0 para no colapsar) ─── */
.notif-filters{flex-shrink:0}

/* ─── Scrollable Body ──────────────────────────────── */
.notif-panel-body{overflow-y:auto;flex:1;padding:0;-webkit-overflow-scrolling:touch}

/* ─── Notification Item ────────────────────────────── */
.notif-item{padding:12px 14px;border-bottom:1px solid #f5f5f5;display:flex;align-items:flex-start;gap:10px;transition:background .15s;cursor:default;animation:notifSlideIn .3s ease-out both}
.notif-item:last-child{border-bottom:none}
.notif-item.clickable{cursor:pointer}
.notif-item:hover{background:#fafafa}
.notif-item.unread{background:#fef2f2;border-left:3px solid #ce2029}
.notif-item.unread:hover{background:#ffecec}

/* stagger animation delay */
.notif-item:nth-child(1){animation-delay:0s}
.notif-item:nth-child(2){animation-delay:.05s}
.notif-item:nth-child(3){animation-delay:.1s}
.notif-item:nth-child(4){animation-delay:.15s}
.notif-item:nth-child(5){animation-delay:.2s}
.notif-item:nth-child(n+6){animation-delay:.25s}

/* ─── Icon ─────────────────────────────────────────── */
.notif-icon{width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;border:1px solid}
.notif-icon.pedido{background:#fef2f2;border-color:#fecaca}
.notif-icon.pago{background:#f0fdf4;border-color:#bbf7d0}
.notif-icon.oferta{background:#fffbeb;border-color:#fde68a}
.notif-icon.general{background:#f3f4f6;border-color:#e5e7eb}

/* ─── Content ──────────────────────────────────────── */
.notif-content{flex:1;min-width:0}
.notif-title{font-size:13px;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.notif-item.unread .notif-title{font-weight:700}
.notif-item:not(.unread) .notif-title{font-weight:600;color:#444}
.notif-msg{font-size:12px;color:#666;margin-top:2px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.notif-item:not(.unread) .notif-msg{color:#999}

/* ─── Footer row (badge + time) ────────────────────── */
.notif-footer{display:flex;justify-content:space-between;align-items:center;margin-top:6px}
.notif-badge-cat{font-size:10px;padding:2px 8px;border-radius:4px;font-weight:600;line-height:1.4}
.notif-badge-cat.pedido{background:#dcfce7;color:#166534}
.notif-badge-cat.pago{background:#dbeafe;color:#1e40af}
.notif-badge-cat.oferta{background:#fef3c7;color:#92400e}
.notif-badge-cat.general{background:#ede9fe;color:#5b21b6}
.notif-time{font-size:10px;color:#bbb}
.notif-item.unread .notif-time{color:#999}

/* ─── Empty State ──────────────────────────────────── */
.notif-empty{padding:40px 20px;text-align:center}
.notif-empty-icon{width:80px;height:80px;margin:0 auto 16px;background:linear-gradient(135deg,#f9fafb,#f3f4f6);border-radius:50%;display:flex;align-items:center;justify-content:center;border:2px dashed #e5e7eb;font-size:32px;opacity:.7}
.notif-empty h4{font-size:15px;font-weight:700;color:#1a1a1a;margin:0 0 6px}
.notif-empty p{font-size:13px;color:#999;line-height:1.4;max-width:220px;margin:0 auto}
.notif-empty-cta{display:inline-block;margin-top:20px;background:#ce2029;color:#fff;border:none;border-radius:10px;padding:10px 20px;font-size:13px;font-weight:600;cursor:pointer;transition:background .15s;text-decoration:none}
.notif-empty-cta:hover{background:#b81c24}

/* ─── Skeleton Loading ─────────────────────────────── */
.notif-skeleton{padding:14px}
.notif-skeleton-pills{display:flex;gap:6px;padding:0 0 12px;border-bottom:1px solid #f0f0f0;margin-bottom:12px}
.notif-skeleton-pill{height:28px;border-radius:14px;background:linear-gradient(90deg,#f0f0f0 25%,#e8e8e8 50%,#f0f0f0 75%);background-size:200%;animation:notifShimmer 1.5s infinite}
.notif-skeleton-row{display:flex;gap:10px;margin-bottom:16px}
.notif-skeleton-icon{width:36px;height:36px;border-radius:10px;background:linear-gradient(90deg,#f0f0f0 25%,#e8e8e8 50%,#f0f0f0 75%);background-size:200%;animation:notifShimmer 1.5s infinite;flex-shrink:0}
.notif-skeleton-line{height:12px;border-radius:6px;background:linear-gradient(90deg,#f0f0f0 25%,#e8e8e8 50%,#f0f0f0 75%);background-size:200%;animation:notifShimmer 1.5s infinite}
.notif-skeleton-line.short{width:60%;height:10px}
.notif-skeleton-line.long{width:85%;margin-bottom:8px}

/* ─── Bell Badge ───────────────────────────────────── */
.notif-bell-badge{display:none;position:absolute;top:-3px;right:-3px;background:#ce2029;border:1.5px solid #fff;border-radius:50%;min-width:8px;height:8px}
.notif-bell-badge.dot{width:10px;height:10px}
.notif-bell-badge.count{width:auto;height:auto;min-width:18px;padding:0 4px;border-radius:9px;font-size:10px;font-weight:700;color:#fff;text-align:center;line-height:16px;animation:notifPulse 2s infinite}
.notif-bell-badge.visible{display:flex;align-items:center;justify-content:center}

/* ─── Animations ───────────────────────────────────── */
@keyframes notifShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
@keyframes notifSheetUp{from{transform:translateY(100%);opacity:.8}to{transform:translateY(0);opacity:1}}
@keyframes notifSlideIn{from{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}
@keyframes notifBellShake{0%,80%,100%{transform:rotate(0)}85%{transform:rotate(8deg)}90%{transform:rotate(-8deg)}95%{transform:rotate(4deg)}}
@keyframes notifPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.15)}}
