/* =================================================================
   PENYESUAIAN JARAK BAWAH (AGAR TIDAK TERLALU BANYAK RUANG KOSONG)
   ============================================================= */

html, body {
    background-color: #f7f8fc !important;
    margin: 0;
    padding: 0;
}

/* Kurangi ukuran padding bawah agar ruang kosongnya pas di atas menu navigasi */
body {
    padding-bottom: 75px !important; /* Anda bisa ubah ke 70px atau 80px sesuai kenyamanan */
}

.catalog-container, .products {
    margin-bottom: 10px !important;
}

/* Container Utama Popup */
/* 1. Latar belakang gelap transparan di tengah layar */
.custom-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.6) !important;
    display: none; /* Awalnya disembunyikan */
    justify-content: center !important;
    align-items: center !important;
    z-index: 99999 !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

/* 2. Kotak putih pop-up di tengah */
.custom-modal-overlay .popup-container {
    background: #ffffff !important;
    width: 100% !important;
    max-width: 480px !important;
    padding: 30px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
    text-align: center !important;
    position: relative !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    box-sizing: border-box !important;
    margin: auto !important;
}

/* 3. Tombol Tutup (X) di pojok kanan atas */
.custom-modal-overlay .close-btn {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    background: transparent !important;
    border: none !important;
    font-size: 28px !important;
    color: #a0aec0 !important;
    cursor: pointer !important;
    z-index: 10 !important;
    line-height: 1 !important;
}

.custom-modal-overlay .close-btn:hover {
    color: #4a5568 !important;
}

/* 4. Area Gambar Ilustrasi */
.custom-modal-overlay .illustration-area {
    margin-bottom: 20px !important;
    position: relative !important;
    height: 160px !important;
    background: #f8fafc !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}

.custom-modal-overlay .illustration-img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* 5. Judul & Deskripsi */
.custom-modal-overlay .popup-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #2d3748 !important;
    margin-bottom: 10px !important;
}

.custom-modal-overlay .popup-description {
    font-size: 14px !important;
    color: #718096 !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
}

/* 6. Tombol Aksi (CTA) */
.custom-modal-overlay .cta-button {
    background-color: #5a67d8 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 25px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: inline-block !important;
    box-shadow: 0 4px 6px rgba(90, 103, 216, 0.2) !important;
    width: 100% !important;
}

.custom-modal-overlay .cta-button:hover {
    background-color: #4c51bf !important;
}

/* =================================================================
   NAVIGASI
   ============================================================= */
/* Overlay Gelap di Belakang Menu (Menutupi navigasi bawah sepenuhnya) */
.nn-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Kontainer Utama Sidebar */
.nn-sidebar-container {
    position: fixed;
    top: 0;
    left: -320px;
    width: 85%;
    max-width: 320px;
    height: auto; /* Diubah agar tinggi menyesuaikan isi konten (terpotong rapi) */
    min-height: 100vh;
    background: #ffffff;
    z-index: 100000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    transition: left 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-sizing: border-box;
}

/* Header Sidebar (Tombol X) */
.nn-sidebar-header {
    padding: 14px 16px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: none; /* Dihilangkan agar atasnya langsung bersih menyatu */
    flex-shrink: 0;
}

.nn-sidebar-close-btn {
    background: none;
    border: none;
    font-size: 26px;
    color: #2d3748;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
}

/* Daftar Menu Utama */
.nn-sidebar-body {
    overflow-y: auto;
    padding: 0 16px;
}

.nn-sidebar-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nn-sidebar-menu-item {
    border-bottom: 1px solid #edf2f7;
}

.nn-sidebar-menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    text-decoration: none;
    color: #1a202c;
    font-size: 16px;
    font-weight: 500;
}

.nn-sidebar-menu-link span {
    color: #a0aec0;
    font-size: 18px;
    font-weight: 300;
}

/* Bagian Bawah / Footer */
.nn-sidebar-footer {
    padding: 14px 16px 20px 16px;
    border-top: 1px solid #edf2f7;
    background: #ffffff;
    flex-shrink: 0;
}

/* 2 Kolom Link Tambahan */
.nn-sidebar-sub-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin-bottom: 12px;
}

.nn-sidebar-sub-link {
    text-decoration: none;
    color: #4a5568;
    font-size: 13px;
}

.nn-sidebar-sub-link:hover {
    color: #1a202c;
}

/* Grid Ikon Sosial Media (Khusus 3 Kolom: IG, WhatsApp, YouTube) */
.nn-sidebar-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
}

.nn-social-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    border-right: 1px solid #e2e8f0;
    color: #2d3748;
    text-decoration: none;
}

/* Menghilangkan border kanan pada kotak terakhir */
.nn-sidebar-social-grid a:last-child {
    border-right: none;
}

.timeline-circle.failed {
    background-color: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

/* Styling tombol agar tetap ramping dan rapi */
.modal-action-btn {
    padding: 12px 20px !important;
    height: auto !important;
    min-height: unset !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden;
    position: relative;
}

/* Animasi Transisi Teks Harga Bergantian */
.price-text-anim {
    transition: all 0.4s ease-in-out;
    display: inline-block;
}

.price-strikethrough-anim {
    text-decoration: line-through;
    color: #ffd1d1 !important; /* Merah muda terang */
    transform: scale(0.95);
    opacity: 0.8;
}

.price-slide-anim {
    animation: slideUpPrice 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideUpPrice {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}