/* CSS untuk loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0099ff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Body halaman */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #e5f7ff;
}

/* Header dengan Search Bar */
.header {
    background-color: #0099ff;
    padding: 15px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar {
    width: 60%;
    padding: 10px;
    border-radius: 20px;
    border: none;
}

/* Container untuk Produk */
.container {
    padding: 20px;
    text-align: center;
}

/* Produk */
.product {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 10px;
    background-color: white;
    gap: 20px; /* Jarak antar gambar dan teks */
}

/* Gambar produk */
.product-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 20px; /* Jarak antara gambar dan teks */
}

/* Info produk */
.product-info {
    text-align: left;
    margin-left: 20px; /* Memberikan jarak tambahan di sebelah kiri teks */
}

/* Nama produk */
.product-name {
    font-size: 18px;
    margin: 0;
}

/* Harga produk */
.product-price {
    font-size: 16px;
    color: #ff0000;
}

/* Harga diskon */
.discount-price {
    font-weight: bold;
}

/* Harga asli */
.original-price {
    text-decoration: line-through;
    color: #999;
}

/* Tombol Beli */
.buy-button {
    background-color: #0099ff;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.buy-button:hover {
    background-color: #005ea3;
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 50px;
  font-size: 14px;
  color: #FFFFFF;
}

/* Gaya link Privacy Policy */
.privacy-link {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: #0099ff;
  text-decoration: none;
}

/* Atur body */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    position: relative;
}

/* Overlay untuk background */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Tetap di belakang konten */
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay hitam dengan transparansi */
    mix-blend-mode: darken; /* Alternatif efek gelap */
}

.privacy-link:hover {
  text-decoration: underline;
}