/* --- FIX ELEMENTOR UI --- */
.e-loop-item, .elementor-loop-item, .elementor-grid-item { position: relative !important; }
.ncp-checkbox-container { position: absolute; top: 10px; left: 10px; z-index: 20; }

/* --- BUTTONS --- */
.ncp-wishlist-btn-wrapper { display: inline-block; z-index: 10; position: relative; }
.ncp-wish-btn { background: rgba(255,255,255,0.95); border: 1px solid #eee; width: 35px; height: 35px; border-radius: 50%; color: #333; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: 0.2s; }
.ncp-wish-btn:hover, .ncp-wish-btn.active { color: #ff4757; background: #fff; transform: scale(1.1); }
.ncp-wish-btn i { font-size: 16px; pointer-events: none; }
@keyframes ncpBeat { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } } .ncp-beat{animation:ncpBeat .4s ease-in-out;}
.ncp-tooltip { display: none; }

/* --- CHECKBOX --- */
.ncp-checkbox-wrapper { display: inline-flex; align-items: center; cursor: pointer; background: rgba(255,255,255,0.9); padding: 4px 8px; border-radius: 20px; font-size: 12px; font-weight: 600; box-shadow: 0 2px 5px rgba(0,0,0,0.15); transition: 0.2s; border: 1px solid rgba(0,0,0,0.05); }
.ncp-checkbox-wrapper:hover { background: #fff; transform: translateY(-1px); }
.ncp-compare-check { display: none; }
.ncp-checkmark { width: 14px; height: 14px; border: 2px solid #7f8c8d; border-radius: 3px; margin-right: 5px; position: relative; transition: 0.2s; background: #fff; }
.ncp-compare-check:checked + .ncp-checkmark { background: #e74c3c; border-color: #e74c3c; }
.ncp-compare-check:checked + .ncp-checkmark::after { content: ''; position: absolute; left: 3px; top: 0px; width: 4px; height: 8px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* --- TOAST & FLOATING --- */
#ncp-toast-container { position: fixed; top: 80px; right: 20px; z-index: 99999; display: flex; flex-direction: column; gap: 10px; }
.ncp-toast { background: #333; color: #fff; padding: 12px 20px; border-radius: 8px; font-size: 14px; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transform: translateX(100%); opacity: 0; transition: 0.3s; display: flex; align-items: center; gap: 10px; }
.ncp-toast.show { transform: translateX(0); opacity: 1; }
.ncp-toast-success { background: #27ae60; } .ncp-toast-error { background: #e74c3c; } .ncp-toast-warning { background: #f39c12; }

.ncp-floating-bar { position: fixed; bottom: -100px; left: 0; right: 0; background: #fff; box-shadow: 0 -5px 20px rgba(0,0,0,0.15); padding: 15px 20px; z-index: 9990; transition: 0.4s; display: flex; justify-content: center; border-top: 1px solid #eee; }
.ncp-floating-bar.show { bottom: 0; }
.ncp-fb-content { display: flex; justify-content: space-between; align-items: center; width: 100%; max-width: 600px; }
.ncp-fb-btn { background: #e74c3c; color: #fff; border: none; padding: 10px 25px; border-radius: 30px; font-weight: bold; cursor: pointer; box-shadow: 0 4px 10px rgba(231, 76, 60, 0.4); transition: 0.2s; }
.ncp-fb-btn:disabled { background: #95a5a6; cursor: not-allowed; box-shadow: none; }
#ncp-fb-toggle { position: absolute; top: -24px; right: 20px; background: #fff; border: 1px solid #eee; width: 40px; height: 25px; border-radius: 8px 8px 0 0; cursor: pointer; font-size: 10px; }
.ncp-floating-bar.collapsed { bottom: -68px; }

/* --- USER DASHBOARD --- */
#ncp-wishlist-dashboard-wrapper { background: #fff; padding: 20px; border-radius: 8px; border: 1px solid #eee; min-height: 200px; position: relative; }
.ncp-loading::before { content:''; position: absolute; top:0; left:0; right:0; bottom:0; background: rgba(255,255,255,0.8); z-index: 5; }
.ncp-dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 2px solid #f1f1f1; flex-wrap: wrap; gap: 10px; }
.ncp-dash-stats { font-size: 16px; color: #333; }
.ncp-dash-actions-top { display: flex; gap: 10px; }
.ncp-btn-share { background: #3498db; color: #fff; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-size: 13px; }
.ncp-btn-clear-all { background: #e74c3c; color: #fff; border: none; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-size: 13px; }

.ncp-dash-item { display: flex; align-items: center; padding: 15px; border-bottom: 1px solid #eee; transition: 0.2s; }
.ncp-dash-item:hover { background: #f9f9f9; }
.ncp-dash-check { margin-right: 15px; }
.ncp-dash-check input { transform: scale(1.3); cursor: pointer; }
.ncp-dash-thumb img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; display: block; margin-right: 15px; }
.ncp-dash-info { flex: 1; }
.ncp-dash-info h4 { margin: 0 0 5px; font-size: 15px; }
.ncp-dash-info h4 a { text-decoration: none; color: #2c3e50; }
.ncp-dash-meta span { font-size: 13px; color: #7f8c8d; margin-right: 10px; }
.ncp-dash-meta .price { color: #e74c3c; font-weight: bold; }
.ncp-dash-action button { background: none; border: 1px solid #ddd; width: 30px; height: 30px; border-radius: 50%; color: #999; font-size: 18px; cursor: pointer; line-height: 1; }
.ncp-dash-action button:hover { background: #e74c3c; color: #fff; border-color: #e74c3c; }

.ncp-dash-footer { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.ncp-btn-remove-bulk { background: #e74c3c; color: #fff; border: none; padding: 8px 20px; border-radius: 30px; cursor: pointer; font-weight: 600; display: none; }
.ncp-dash-pagination button { background: #fff; border: 1px solid #ddd; padding: 5px 10px; margin-left: 5px; cursor: pointer; border-radius: 4px; }
.ncp-dash-pagination button.active { background: #333; color: #fff; border-color: #333; }

/* Responsive Dashboard */
@media (max-width: 600px) {
    .ncp-dash-item { flex-wrap: wrap; position: relative; }
    .ncp-dash-check { position: absolute; top: 15px; left: 10px; }
    .ncp-dash-thumb { margin-left: 30px; }
    .ncp-dash-action { position: absolute; top: 10px; right: 10px; }
    .ncp-dash-header { flex-direction: column; align-items: flex-start; }
}

/* Most Viewed Widget */
.ncp-most-viewed-widget { background: #fff; padding: 20px; border: 1px solid #eee; border-radius: 8px; margin-top: 20px; }
.ncp-most-viewed-widget h3 { margin-top: 0; margin-bottom: 15px; font-size: 18px; border-bottom: 2px solid #e74c3c; display: inline-block; padding-bottom: 5px; }
.ncp-mv-list { list-style: none; padding: 0; margin: 0; }
.ncp-mv-list li { display: flex; gap: 15px; margin-bottom: 15px; align-items: center; border-bottom: 1px solid #f9f9f9; padding-bottom: 10px; }
.ncp-mv-list li:last-child { border-bottom: none; margin-bottom: 0; }
.ncp-mv-thumb img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; display: block; }
.ncp-mv-info { flex: 1; }
.ncp-mv-title { font-size: 14px; font-weight: 600; color: #333; text-decoration: none; display: block; line-height: 1.3; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncp-mv-price { color: #e74c3c; font-weight: bold; font-size: 13px; display: inline-block; margin-right: 10px; }
.ncp-mv-views { font-size: 11px; color: #888; background: #f1f1f1; padding: 2px 6px; border-radius: 4px; }

/* Admin Dashboard */
.ncp-dash-title { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); color: #fff !important; padding: 20px; border-radius: 8px; margin-bottom: 20px; display: flex; align-items: center; }
.ncp-dash-title .dashicons { font-size: 32px; width: 32px; height: 32px; margin-right: 15px; color: #fff; }
.ncp-tab-content { background: #fff; border: 1px solid #ccc; border-top: none; padding: 20px; }
.ncp-badge { background: #e74c3c; color: #fff; padding: 3px 8px; border-radius: 10px; font-size: 12px; font-weight: bold; }
.ncp-compare-table-container { overflow-x: auto; margin-bottom: 30px; border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); background: #fff; border: 1px solid #eee; }
.ncp-compare-table { width: 100%; border-collapse: collapse; min-width: 800px; }
.ncp-compare-table th, .ncp-compare-table td { padding: 15px; text-align: center; border-bottom: 1px solid #eee; vertical-align: middle; }
.ncp-compare-table th { background: #f9f9f9; font-weight: 600; text-align: left; width: 180px; position: sticky; left: 0; z-index: 2; border-right: 1px solid #eee; }
.ncp-compare-table td { min-width: 220px; background: #fff; }
.ncp-cmp-thumb { position: relative; width: 100%; height: 140px; overflow: hidden; border-radius: 6px; margin-bottom: 10px; }
.ncp-cmp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ncp-remove-cmp { position: absolute; top: 5px; right: 5px; background: rgba(0,0,0,0.6); color: #fff; border: none; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }