* { box-sizing: border-box; margin: 0; padding: 0; font-family: sans-serif; }
body { background-color: #f9f9f9; color: #333; padding: 20px; padding-bottom: 80px; }
.container { max-width: 500px; margin: auto; }
h1 { text-align: center; color: #d32f2f; margin-bottom: 20px; }

/* Admin Form */
.admin-form { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
input, select, textarea { width: 100%; padding: 10px; margin-bottom: 10px; border: 1px solid #ccc; border-radius: 4px; }
button { width: 100%; padding: 12px; background: #d32f2f; color: white; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; }
button:hover { background: #b71c1c; }

/* Product Grid */
.product-card { background: white; border-radius: 8px; overflow: hidden; margin-bottom: 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); display: flex; flex-direction: column; }
.product-card img { 
    width: 100%; 
    height: auto; /* Biarkan tinggi menyesuaikan aslinya */
    max-height: 250px; /* Batasi tinggi maksimal agar tidak terlalu panjang */
    object-fit: contain; /* Tampilkan seluruh gambar tanpa dipotong */
    background-color: #fff; /* Beri background putih jika ada ruang kosong */
}
.product-info { padding: 15px; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: bold; color: white; margin-bottom: 10px; }
.badge.pedas { background-color: #d32f2f; }
.badge.original { background-color: #388e3c; }
.price { font-size: 18px; font-weight: bold; color: #d32f2f; margin: 10px 0; }

/* Qty Controls */
.qty-control { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 10px; }
.qty-control button { width: auto; padding: 10px 15px; font-size: 18px; border-radius: 4px; }
.btn-add { width: 100% !important; background: #d32f2f; color: white; border: none; font-weight: bold; cursor: pointer; }
.btn-min, .btn-plus { background: #eee; color: #333; border: 1px solid #ccc; font-weight: bold; cursor: pointer; }
.btn-min:hover, .btn-plus:hover { background: #ddd; }
.qty-number { font-weight: bold; font-size: 16px; min-width: 20px; text-align: center; }

/* Cart Floating Button */
.cart-floating { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); width: 90%; max-width: 500px; background: #25d366; color: white; text-align: center; padding: 15px; border-radius: 50px; font-weight: bold; cursor: pointer; display: none; box-shadow: 0 4px 6px rgba(0,0,0,0.2); z-index: 100; }
/* Modal Checkout */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; justify-content: center; align-items: center; z-index: 999; }
.modal-content { background: white; padding: 20px; border-radius: 8px; width: 90%; max-width: 400px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.modal-content h3 { margin-bottom: 15px; color: #d32f2f; }
.btn-close { background: #ccc; color: #333; margin-top: 10px; }
.btn-close:hover { background: #bbb; }
