/* ============================================================
   nv-features.css — تنسيقات الميزات الجديدة
   (جرس الإشعارات + نافذة تفاصيل الطلب + سلايدر الصور)
   ============================================================ */

/* ─────────────── 1) جرس الإشعارات ─────────────── */
#nvNotifBell {
    position: relative;
    z-index: 1045;
}
#nvNotifBell.nv-in-navbar {
    display: flex;
    align-items: center;
    margin: 0 8px;
}
#nvNotifBell.nv-fixed {
    position: fixed;
    top: 90px;
    inset-inline-start: 18px;
    z-index: 1045;
}
.nv-bell-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary, #1a3a5c);
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}
.nv-bell-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.06);
}
/* حالة وجود طلبات غير مقروءة — لون مميّز لجذب الانتباه */
#nvNotifBell.nv-has-unread .nv-bell-btn {
    background: #fee2e2;
    color: #dc2626;
}
/* اهتزاز الجرس عند وصول طلب جديد */
@keyframes nvRing {
    0%, 100% { transform: rotate(0); }
    12% { transform: rotate(18deg); }
    24% { transform: rotate(-15deg); }
    36% { transform: rotate(12deg); }
    48% { transform: rotate(-9deg); }
    60% { transform: rotate(6deg); }
    72% { transform: rotate(-4deg); }
    84% { transform: rotate(2deg); }
}
.nv-bell-btn.nv-ringing i {
    animation: nvRing 1.4s ease;
    transform-origin: top center;
}
/* Badge العدد */
.nv-bell-badge {
    position: absolute;
    top: -5px;
    inset-inline-end: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.45);
}
/* القائمة المنسدلة — الموضع الدقيق يُحسب بالجافاسكربت لتبقى داخل الشاشة */
.nv-bell-dropdown {
    position: fixed;
    top: 70px;
    left: 10px;
    width: 340px;
    max-width: calc(100vw - 20px);
    max-height: min(480px, calc(100vh - 90px));
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    display: none;
    text-align: start;
    z-index: 4001;
    flex-direction: column;
}
.nv-bell-dropdown.show {
    display: flex;
    animation: nvDropIn 0.22s ease;
}
@keyframes nvDropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nv-dd-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--primary, #1a3a5c);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}
.nv-mark-all {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 0.72rem;
    padding: 5px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s;
}
.nv-mark-all:hover {
    background: rgba(255, 255, 255, 0.3);
}
.nv-dd-list {
    max-height: 380px;
    overflow-y: auto;
}
.nv-dd-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.2s;
}
.nv-dd-item:last-child { border-bottom: none; }
.nv-dd-item:hover { background: #f8fafc; }
.nv-dd-item.nv-unread { background: #fff7ed; }
.nv-dd-item.nv-unread:hover { background: #ffedd5; }
.nv-dd-section {
    padding: 8px 14px;
    font-size: .72rem;
    font-weight: 700;
    color: #8a97a6;
    background: #f0f4f8;
    border-bottom: 1px solid #e3e9f0;
    letter-spacing: .3px;
}
.nv-dd-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(26, 58, 92, 0.08);
    color: var(--primary, #1a3a5c);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nv-dd-item-body { flex: 1; min-width: 0; }
.nv-dd-item-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 6px;
}
.nv-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #dc2626;
    display: inline-block;
}
.nv-dd-item-sub {
    font-size: 0.78rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nv-dd-item-time {
    font-size: 0.7rem;
    color: #9ca3af;
    margin-top: 2px;
}
.nv-dd-arrow { color: #d1d5db; font-size: 0.75rem; }
.nv-dd-empty {
    padding: 36px 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
}
.nv-dd-empty i { font-size: 1.8rem; margin-bottom: 8px; }

/* ─────────────── 2) نافذة تفاصيل الطلب ─────────────── */
.nv-order-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s;
}
.nv-order-overlay.show { opacity: 1; }
.nv-order-box {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(14px);
    transition: transform 0.25s;
}
.nv-order-overlay.show .nv-order-box { transform: translateY(0); }
.nv-order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--primary, #1a3a5c);
    color: #fff;
    font-weight: 700;
}
.nv-order-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
}
.nv-order-close:hover { background: rgba(255, 255, 255, 0.3); }
.nv-order-body { padding: 18px; overflow-y: auto; }
.nv-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.nv-order-table th, .nv-order-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f1f1f1;
    text-align: start;
    vertical-align: top;
}
.nv-order-table th {
    color: #6b7280;
    font-weight: 600;
    width: 38%;
}
.nv-order-items-title {
    margin: 16px 0 8px;
    font-size: 0.95rem;
    color: var(--primary, #1a3a5c);
}
.nv-order-item {
    display: flex;
    justify-content: space-between;
    padding: 7px 10px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

/* ─────────────── 3) سلايدر صور المنتج (Lightbox) ─────────────── */
.nv-lb-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    touch-action: none;
}
.nv-lb-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.nv-lb-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.nv-lb-img {
    max-width: 88vw;
    max-height: 76vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    cursor: zoom-in;
    transition: transform 0.25s ease;
    border-radius: 6px;
}
.nv-lb-close {
    position: absolute;
    top: 18px;
    inset-inline-end: 18px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, transform 0.2s;
}
.nv-lb-close:hover { background: rgba(255, 255, 255, 0.28); transform: rotate(90deg); }
.nv-lb-counter {
    position: absolute;
    top: 26px;
    inset-inline-start: 24px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 999px;
    z-index: 10;
}
.nv-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.nv-lb-nav:hover { background: rgba(255, 255, 255, 0.3); }
.nv-lb-prev { inset-inline-start: 18px; }
.nv-lb-next { inset-inline-end: 18px; }
.nv-lb-tools {
    position: absolute;
    bottom: 96px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}
.nv-lb-tool {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.nv-lb-tool:hover { background: rgba(255, 255, 255, 0.3); }
.nv-lb-thumbs {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    max-width: 90vw;
    overflow-x: auto;
    padding: 6px;
    z-index: 10;
}
.nv-lb-thumb {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.55;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex-shrink: 0;
}
.nv-lb-thumb:hover { opacity: 0.85; }
.nv-lb-thumb.active {
    opacity: 1;
    border-color: #fff;
}
/* مؤشر أن صورة المنتج قابلة للضغط */
[data-nv-lb] img {
    cursor: zoom-in;
}

/* ─────────────── 4) نافذة إضافة/تعديل القسم ─────────────── */
.nv-icon-option {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--primary, #1a3a5c);
    transition: all 0.2s;
    background: #fff;
}
.nv-icon-option:hover { border-color: var(--accent, #c9a227); }
.nv-icon-option.selected {
    border-color: var(--primary, #1a3a5c);
    background: var(--primary, #1a3a5c);
    color: #fff;
}

/* ─────────────── تجاوب الجوال ─────────────── */
@media (max-width: 576px) {
    .nv-lb-nav { width: 42px; height: 42px; }
    .nv-lb-tools { bottom: 90px; }
    #nvNotifBell.nv-fixed { top: 75px; }
}

/* ============================================================
   اللوغو الجديد (ibrahem store)
   ============================================================ */
.nv-logo-img {
    display: inline-block;
    width: auto;
    height: auto;
    vertical-align: middle;
}
/* شريط التنقل العلوي */
.navbar-logo .nv-logo-img,
.nv-logo-header {
    max-height: 56px;
}
/* قائمة الجوال */
.mobile-menu .navbar-logo .nv-logo-img {
    max-height: 46px;
}
/* الفوتر (النسخة البيضاء على الخلفية الداكنة) */
.footer-logo .nv-logo-img,
.nv-logo-footer {
    max-height: 64px;
}
/* الجوال: تصغير بسيط حتى لا يزاحم أزرار الشريط */
@media (max-width: 991px) {
    .navbar-logo .nv-logo-img,
    .nv-logo-header { max-height: 44px; }
}
@media (max-width: 576px) {
    .navbar-logo .nv-logo-img,
    .nv-logo-header { max-height: 38px; }
}


/* ============================================================
   v14 — أزرار تحكم المدير (تعديل/حذف/نقل) — تظهر فقط في وضع التحرير
   ============================================================ */
.product-admin-controls,
.category-admin-controls {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 60;
    gap: 6px;
    direction: ltr;
}
body.editing-active .product-admin-controls,
body.editing-active .category-admin-controls {
    display: flex;
}
.product-admin-btn,
.cat-admin-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 2px 10px rgba(15, 37, 56, .25);
    transition: transform .15s ease, box-shadow .15s ease;
    padding: 0;
    line-height: 1;
}
.product-admin-btn:hover,
.cat-admin-btn:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 14px rgba(15, 37, 56, .35);
}
.product-admin-btn.edit,
.cat-admin-btn.edit {
    background: #1a3a5c;
    color: #fff;
}
.product-admin-btn.delete,
.cat-admin-btn.delete {
    background: #dc2626;
    color: #fff;
}
.product-admin-btn.move {
    background: #fff;
    color: #1a3a5c;
    border: 1px solid #d5dde6;
}

/* زر حذف المنتج في صفحة المنتجات (بجانب قلم التعديل) — وضع التحرير فقط */
.admin-delete-btn {
    position: absolute;
    top: 10px;
    left: 52px; /* يمين قلم التعديل (القلم عند left:10px بعرض 36px) */
    width: 36px;
    height: 36px;
    background: #dc2626;
    border: none;
    border-radius: 50%;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    z-index: 60;
    box-shadow: 0 2px 10px rgba(220, 38, 38, .35);
    transition: transform .15s ease;
    padding: 0;
    line-height: 1;
}
body.editing-active .admin-delete-btn {
    display: flex;
}
.admin-delete-btn:hover {
    transform: scale(1.12);
}

/* في وضع التحرير: أخفِ قلم التعديل العائم القديم لتظهر مجموعة الأزرار الجديدة مكانه */
body.editing-active .admin-edit-btn {
    opacity: 1;
    visibility: visible;
}


/* ============================================================
   v15 — زر تغيير صورة الهيرو + سلة حذف القسم في الشريط العلوي
   ============================================================ */
.nv-img-edit-badge {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 70;
    background: #1a3a5c;
    color: #fff;
    border: 2px solid #d49d46;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: .85rem;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(15, 37, 56, .35);
    white-space: nowrap;
    transition: transform .15s ease, background .15s ease;
}
.nv-img-edit-badge:hover {
    background: #d49d46;
    color: #1a3a5c;
    transform: translateX(-50%) scale(1.05);
}

/* زر تغيير الخلفية — زاوية القسم (بعيداً عن زر صورة البانر) */
.nv-img-edit-badge.nv-bg-badge {
    bottom: 14px;
    left: auto;
    right: 14px;
    transform: none;
    background: #0f2538;
}
.nv-img-edit-badge.nv-bg-badge:hover {
    transform: scale(1.05);
    background: #d49d46;
}

/* زر 🗑️ صغير بجانب كل قسم في شريط الأقسام العلوي — للمدير فقط */
.nv-cat-li {
    display: flex;
    align-items: center;
    gap: 2px;
}
.nv-cat-del {
    background: transparent;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: .72rem;
    padding: 2px 5px;
    border-radius: 50%;
    line-height: 1;
    opacity: .55;
    transition: opacity .15s ease, background .15s ease, transform .15s ease;
}
.nv-cat-del:hover {
    opacity: 1;
    background: #dc2626;
    color: #fff;
    transform: scale(1.15);
}


/* ============================================================
   v16 — ترقيم صفحات المنتجات
   ============================================================ */
.nv-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
    direction: rtl;
}
.nv-pg-num,
.nv-pg-btn {
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border-radius: 10px;
    border: 1.5px solid #d5dde6;
    background: #fff;
    color: #1a3a5c;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    transition: all .15s ease;
}
.nv-pg-num:hover,
.nv-pg-btn:hover {
    border-color: #d49d46;
    background: #fdf8ef;
    transform: translateY(-2px);
}
.nv-pg-num.active {
    background: #1a3a5c;
    border-color: #1a3a5c;
    color: #d49d46;
    pointer-events: none;
}
.nv-pg-dots {
    color: #8a97a6;
    padding: 0 4px;
}
.nv-pg-info {
    text-align: center;
    color: #8a97a6;
    font-size: .82rem;
    margin-top: 12px;
}

/* v17 — main navbar static links (about/contact) */
.nv-main-links { align-items: center; gap: 20px; margin: 0 18px; flex-shrink: 0; }
.nv-main-links a { color: #fff; font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none; opacity: .92; transition: opacity .2s, color .2s; }
.nv-main-links a:hover { color: #c9a45c; opacity: 1; }
.nv-main-links a i { font-size: 12px; margin-inline-end: 4px; }

/* v17 — صفحات من نحن / اتصل بنا */
.nv-page-hero { background: linear-gradient(135deg, #1a3a5c, #0f2538); padding: 56px 0 48px; text-align: center; }
.nv-page-title { color: #fff; font-size: 34px; font-weight: 800; margin: 0 0 10px; }
.nv-page-subtitle { color: rgba(255,255,255,.82); font-size: 16px; margin: 0 auto; max-width: 640px; line-height: 1.9; }
.section-padding { padding: 56px 0; }
.nv-tinted { background: #f4f6f8; }
.nv-block-title { color: #1a3a5c; font-size: 26px; font-weight: 800; margin-bottom: 16px; position: relative; }
.nv-block-title::after { content: ''; display: block; width: 54px; height: 3px; background: #c9a45c; border-radius: 2px; margin-top: 10px; }
.text-center .nv-block-title::after, .nv-block-title.text-center::after { margin-inline: auto; }
.nv-block-text { color: #4a5a6a; line-height: 2.05; font-size: 15.5px; white-space: pre-line; }
.nv-about-img { border-radius: 18px; overflow: hidden; box-shadow: 0 14px 40px rgba(15,37,56,.14); }
.nv-about-img img { width: 100%; height: 340px; object-fit: cover; display: block; }
.nv-vm-card { background: #fff; border-radius: 16px; padding: 32px 28px; height: 100%; box-shadow: 0 6px 24px rgba(15,37,56,.07); border-top: 4px solid #c9a45c; }
.nv-vm-icon { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(135deg, #1a3a5c, #0f2538); color: #c9a45c; display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; }
.nv-vm-card h3 { color: #1a3a5c; font-size: 21px; font-weight: 800; margin-bottom: 12px; }
.nv-vm-card p { color: #4a5a6a; line-height: 1.95; margin: 0; white-space: pre-line; }
.nv-why-card { background: #fff; border-radius: 16px; padding: 30px 22px; text-align: center; height: 100%; box-shadow: 0 6px 24px rgba(15,37,56,.07); transition: transform .25s ease, box-shadow .25s ease; }
.nv-why-card:hover { transform: translateY(-6px); box-shadow: 0 14px 34px rgba(15,37,56,.12); }
.nv-why-card > i, .nv-why-card > .nv-why-emoji { width: 62px; height: 62px; border-radius: 50%; background: #fdf3e3; color: #c9a45c; display: inline-flex; align-items: center; justify-content: center; font-size: 26px; margin-bottom: 16px; }
.nv-why-card h4 { color: #1a3a5c; font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.nv-why-card p { color: #4a5a6a; font-size: 14px; line-height: 1.9; margin: 0; white-space: pre-line; }
.nv-stat { padding: 18px 10px; }
.nv-stat-num { color: #1a3a5c; font-size: 38px; font-weight: 900; line-height: 1.1; }
.nv-stat-label { color: #c9a45c; font-size: 15px; font-weight: 700; margin-top: 6px; }
/* بطاقات معلومات التواصل */
.nv-info-card { background: #fff; border-radius: 14px; padding: 18px 20px; display: flex; align-items: center; gap: 16px; box-shadow: 0 4px 18px rgba(15,37,56,.06); }
.nv-info-icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, #1a3a5c, #0f2538); color: #c9a45c; display: flex; align-items: center; justify-content: center; font-size: 21px; }
.nv-info-card h4 { color: #1a3a5c; font-size: 15px; font-weight: 800; margin: 0 0 4px; }
.nv-info-card p { color: #4a5a6a; font-size: 14.5px; margin: 0; line-height: 1.7; }
.nv-form-card { background: #fff; border-radius: 16px; padding: 32px 30px; box-shadow: 0 6px 24px rgba(15,37,56,.07); height: 100%; }
.nv-form-card .form-control { padding: 12px 14px; border-radius: 10px; border: 1.5px solid #e0e5ea; font-family: inherit; }
.nv-form-card .form-control:focus { border-color: #c9a45c; box-shadow: none; outline: none; }
.nv-send-btn { background: linear-gradient(135deg, #1a3a5c, #0f2538); color: #fff; border: 0; border-radius: 10px; padding: 12px 30px; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .25s ease; font-family: inherit; }
.nv-send-btn:hover { background: #c9a45c; }
.nv-send-btn:disabled { opacity: .6; cursor: not-allowed; }

/* v18 — شريط الأقسام: زر كل الأقسام + المودال */
.nv-all-cats-li > a { color: #c9a45c !important; font-weight: 700; }
.nv-cats-count { display: inline-block; background: #c9a45c; color: #1a3a5c; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 1px 7px; margin-inline-start: 4px; }
.nv-cats-modal { position: fixed; inset: 0; z-index: 10050; display: none; }
.nv-cats-modal.open { display: block; }
.nv-cats-backdrop { position: absolute; inset: 0; background: rgba(15,37,56,.55); backdrop-filter: blur(2px); }
.nv-cats-dialog { position: relative; background: #fff; width: min(680px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 80px)); margin: 8vh auto 0; border-radius: 18px; box-shadow: 0 24px 70px rgba(15,37,56,.35); display: flex; flex-direction: column; overflow: hidden; animation: nvCatsPop .22s ease; }
@keyframes nvCatsPop { from { transform: translateY(16px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.nv-cats-head { background: linear-gradient(135deg, #1a3a5c, #0f2538); color: #fff; padding: 14px 18px; font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: space-between; }
.nv-cats-head i { color: #c9a45c; margin-inline-end: 6px; }
.nv-cats-close { background: rgba(255,255,255,.14); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.nv-cats-close:hover { background: #c9a45c; }
.nv-cats-grid { padding: 18px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.nv-cats-item { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; background: #f6f8fa; border: 1.5px solid #e4eaf0; border-radius: 14px; text-decoration: none; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.nv-cats-item:hover { transform: translateY(-3px); border-color: #c9a45c; background: #fdf8ef; }
.nv-cats-icon { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #1a3a5c, #0f2538); color: #c9a45c; display: flex; align-items: center; justify-content: center; font-size: 21px; }
.nv-cats-name { color: #1a3a5c; font-weight: 700; font-size: 14px; text-align: center; line-height: 1.5; }
