/* Custom Scrollbar (Optional) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #FFD700; /* Aksen Emas */
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #e6c200;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000000;
    color: #f0f0f0;
    overflow-x: hidden;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)), url('https://placehold.co/1920x1080/1a1a1a/333333?text=PZStore+Imvu+Universe') no-repeat center center;
    background-size: cover;
}
.hero-section[style*="url('')"] {
     background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.9)), #111;
}

.category-card { 
    background-color: #1a1a1a;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.15);
}

.product-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1rem; 
}
.product-card:hover {
    transform: translateY(-5px) scale(1.03); 
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}
.product-card .product-image-container { /* Container untuk gambar agar ukurannya konsisten */
    height: 8rem; 
    margin-bottom: 0.75rem; 
    background-color: #2d2d2d; /* Placeholder bg jika gambar gagal load */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.375rem; /* rounded-md */
}
.product-card .product-image {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}
 .product-card .product-image-container .fa-image { /* Ikon jika gambar error */
    font-size: 2rem;
    color: #777;
}
.product-card .product-name {
    font-size: 0.9rem; 
    line-height: 1.2; 
    min-height: 2.16em; 
    margin-bottom: 0.25rem; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
}
.product-card .product-price {
    font-size: 1rem; 
    margin-bottom: 0.5rem; 
}
.product-card .btn-add-to-cart {
    font-size: 0.8rem; 
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}


.btn-primary, .btn-add-to-cart {
    background-color: #FFD700; 
    color: #111;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover, .btn-add-to-cart:hover {
    background-color: #e6c200;
    transform: scale(1.05);
}

.btn-secondary {
    background-color: transparent;
    color: #FFD700; 
    border: 2px solid #FFD700;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.btn-secondary:hover {
    background-color: #FFD700;
    color: #111;
    transform: scale(1.05);
}
        
.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #FFD700;
    border-radius: 2px;
}

.neon-text {
    color: #fff;
    text-shadow:
        0 0 5px #FFD700, 0 0 10px #FFD700, 0 0 15px #FFD700,
        0 0 20px #9D00FF, 0 0 35px #9D00FF, 0 0 40px #9D00FF,
        0 0 50px #9D00FF, 0 0 75px #9D00FF;
    animation: flicker 1.5s infinite alternate;
}
.store-name-imvu { /* Styling untuk "Imvu" pada nama toko */
    color: #cccccc; /* Warna abu-abu terang */
    font-size: 1.5rem; /* Sedikit lebih kecil dari nama utama */
    font-weight: 300; /* Lebih tipis */
    margin-left: 0.25rem;
    font-style: italic;
}


@keyframes flicker {
    0%, 18%, 22%, 25%, 53%, 57%, 100% {
        text-shadow:
            0 0 4px #FFD700, 0 0 11px #FFD700, 0 0 19px #FFD700,
            0 0 40px #9D00FF, 0 0 80px #9D00FF, 0 0 90px #9D00FF,
            0 0 100px #9D00FF, 0 0 150px #9D00FF;
    }
    20%, 24%, 55% { text-shadow: none; }
}

.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7); 
}
.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto; 
    padding: 20px;
    border: 1px solid #FFD700;
    border-radius: 8px;
    width: 90%;
    max-width: 600px; 
    text-align: left; 
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}
.modal-content.notification-modal-content { 
     max-width: 400px; 
     text-align: center;
}

.modal-close-button {
    background-color: #FFD700;
    color: #111;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.modal-close-button:hover { background-color: #e6c200; }

.cart-item {
    border-bottom: 1px solid #333;
}
.cart-item:last-child {
    border-bottom: none;
}
.quantity-controls button {
    background-color: #333;
    color: #FFD700;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    font-weight: bold;
}
.quantity-controls button:hover {
    background-color: #444;
}
.cart-icon-container {
    position: relative;
}
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
}

.loader {
    border: 4px solid #333; 
    border-top: 4px solid #FFD700; 
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.product-grid-container {
    display: none; 
}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000; 
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background-color: #2d2d2d; 
    color: #FFD700; 
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-left: 5px solid #FFD700; 
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    align-items: center;
}
.toast.show {
    opacity: 1;
    transform: translateX(0);
}
.toast.hide {
    opacity: 0;
    transform: translateX(100%);
}
.toast i { 
    margin-right: 10px;
    font-size: 1.2em;
}

#floatingWhatsappButton {
    position: fixed;
    bottom: 1.5rem; 
    left: 1.5rem; 
    z-index: 50; 
    transition: transform 0.3s ease-out;
}
#floatingWhatsappButton:hover {
    transform: scale(1.1);
}
.whatsapp-icon-link {
    display: block;
    width: 3.5rem; 
    height: 3.5rem; 
    background-color: #25D366; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: background-color 0.3s ease;
    position: relative; 
}
.whatsapp-icon-link:hover {
    background-color: #1DAE52; 
}
.whatsapp-icon-link i {
    font-size: 1.875rem; 
}
#whatsappNotificationBubble {
    position: absolute;
    top: -2px;      
    right: -2px;    
    width: 0.85rem;  
    height: 0.85rem; 
    background-color: #FFD700; 
    border-radius: 50%;
    border: 2px solid #1a1a1a; 
    animation: pulse-whatsapp 2s infinite;
    display: none; 
}
@keyframes pulse-whatsapp {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}
#whatsappTooltip {
    position: absolute;
    /* Diubah: Posisi top untuk vertikal tengah, left untuk di kanan ikon */
    top: 50%;
    left: calc(100% + 0.75rem); /* 0.75rem (12px) jarak dari ikon */
    /* Diubah: Transform untuk Y-axis agar tengah vertikal */
    transform: translateY(-50%) translateX(10px); /* Awalnya sedikit ke kanan untuk animasi masuk */
    padding: 0.5rem 0.75rem; /* p-2 px-3 */
    background-color: #1f2937; /* bg-gray-800 */
    color: white;
    font-size: 0.75rem; /* text-xs */
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none; 
    white-space: nowrap; 
    /* Diubah: Transform origin untuk animasi dari kiri */
    transform-origin: left center; 
}

#floatingWhatsappButton:hover #whatsappTooltip {
    opacity: 1;
    /* Diubah: Transform saat hover agar muncul dari kiri ke kanan */
    transform: translateY(-50%) translateX(0); 
}

/* Styling untuk input di admin card (jika ada admin panel di masa depan) */
.admin-card input, .admin-card textarea, .admin-card select,
.profile-card input, .profile-card textarea { 
    background-color: #2d2d2d;
    border: 1px solid #444;
    color: #f0f0f0;
    padding: 0.5rem; /* p-2 */
    border-radius: 0.375rem; /* rounded-md */
    width: 100%;
    font-size: 0.875rem; /* text-sm */
}
.admin-card input::placeholder, .admin-card textarea::placeholder,
.profile-card input::placeholder { 
    color: #777;
}
