@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #e5e7eb;
    overflow: hidden; /* Mencegah double scroll */
}

/* Background Blur Overlay */
.page-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2); 
    backdrop-filter: blur(6px);
    z-index: 1;
}

/* Container Pop-up Fleksibel */
.detail-container {
    position: relative;
    width: 90%;
    max-width: 750px; 
    background: #fff;
    padding: 35px 40px; /* Padding sisi agar seimbang */
    padding-bottom: 50px; /* Jarak aman di bawah tombol */
    border-radius: 40px;
    z-index: 10;
    box-shadow: 0 25px 60px -15px rgba(0,0,0,0.15);
    
    /* Mendukung Deskripsi Panjang */
    max-height: 90vh; 
    overflow-y: auto; 
    
    animation: popupAnim 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes popupAnim {
    from { opacity: 0; transform: scale(0.96) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Tombol Kembali Lingkaran */
.btn-back {
    position: absolute;
    top: 15px; left: 15px;
    width: 42px; height: 42px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 20;
}
.btn-back:hover { transform: scale(1.1); }

/* Layout Grid */
.content-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* Area Foto & Label Berwarna */
.image-section { position: relative; }
.main-card-img { border-radius: 25px; overflow: hidden; }
.main-card-img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }

.status-tag {
    position: absolute;
    top: 15px; right: 15px;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
}
.status-tag.baru { background: #fbbf24; } /* Gold untuk Baru */
.status-tag.second { background: #3b82f6; } /* Blue untuk Second */

/* Informasi Detail */
.header-info h1 { font-size: 28px; font-weight: 800; margin: 0; color: #0f172a; }
.price-tag { font-size: 22px; font-weight: 700; color: #059669; margin: 8px 0 25px 0; }

/* Grid Spesifikasi dengan Border */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 25px; }
.spec-item { background: #f8fafc; padding: 15px; border-radius: 18px; border: 1px solid #f1f5f9; }
.spec-item span { display: block; color: #64748b; font-size: 11px; font-weight: 700; margin-bottom: 2px; }
.spec-item strong { font-size: 14px; font-weight: 800; }

/* Deskripsi & Ruang Napas */
.text-content {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 35px; /* Jarak agar teks tidak menempel ke tombol */
    word-wrap: break-word;
}

/* Tombol WhatsApp (Tidak Mepet Kanan/Bawah) */
.action-area {
    margin-top: auto;
    padding-right: 15px; /* Memberi celah di sisi kanan tombol */
}

.btn-order {
    display: block;
    width: 100%;
    background: #000;
    color: #fff;
    text-align: center;
    padding: 18px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    transition: 0.3s ease;
}
.btn-order:hover { background: #00ff15; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 255, 21, 0.1); }

/* Custom Scrollbar Modern */
.detail-container::-webkit-scrollbar { width: 5px; }
.detail-container::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

/* Responsif Mobile */
@media (max-width: 700px) {
    .content-wrapper { grid-template-columns: 1fr; }
    .detail-container { padding: 25px; margin: 20px; padding-bottom: 40px; }
    .action-area { padding-right: 0; }
}