/* Gaya untuk Tombol Pilihan Pembayaran */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.payment-option-btn {
    background-color: #3498db;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: left;
}

.payment-option-btn i {
    margin-right: 10px;
}

.payment-option-btn:hover {
    background-color: #2980b9;
}

/* Tambahkan gaya untuk QRIS Image di sini agar terpusat */
#qris-image {
    width: 250px; /* Atur ukuran gambar QRIS sesuai kebutuhan */
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Semua kode CSS lainnya tetap sama */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
    transition: opacity 0.5s ease;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f2f5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-circle {
    width: 60px;
    height: 60px;
    border: 5px solid #ccc;
    border-top-color: #6a11cb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#preloader p {
    margin-top: 15px;
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.hidden {
    display: none;
    opacity: 0;
}

#main-content {
    opacity: 0;
    transition: opacity 0.5s ease;
}

#main-content.visible {
    opacity: 1;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #2ecc71;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
    z-index: 10000;
}

.notification.show {
    opacity: 1;
    transform: translateY(0);
}

.card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

header {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

main {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

#products-list, #shopping-cart, #checkout-confirmation, #payment-selection {
    flex: 1;
}

#product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f9f9f9;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.price {
    font-size: 1.2em;
    color: #6a11cb;
    font-weight: bold;
}

button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    margin-top: 10px;
}

button:hover {
    background-color: #0056b3;
    transform: scale(1.02);
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

pre {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.9em;
}

#checkout-confirmation p {
    line-height: 1.6;
}

#checkout-confirmation .payment-info {
    font-size: 1.1em;
    font-weight: bold;
    color: #34495e;
    margin-bottom: 20px;
}

#checkout-confirmation .payment-info span {
    color: #c0392b;
}

@media (max-width: 768px) {
    main {
        flex-direction: column;
    }
    .product-card {
        padding: 15px;
    }
}
/* Gaya Pop-up Promosi Mengambang yang Baru */
#promo-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px); /* Posisikan di tengah atas dan sembunyikan */
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%); /* Warna yang senada dengan header */
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

#promo-popup.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0); /* Muncul dari atas */
}

#promo-popup.hide {
    opacity: 0;
    transform: translateX(-50%) translateY(-100px); /* Hilang ke atas */
}

#promo-popup a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

#promo-popup i {
    font-size: 18px;
    margin-right: 8px;
    color: #f1c40f; /* Warna kuning terang sebagai aksen */
}

#promo-popup .popup-text {
    font-size: 14px;
    font-weight: 500;
}

#promo-popup u {
    text-decoration: underline;
}

/* Sisa kode CSS lainnya tetap sama */
/* ... */