/* === Global Style === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* === Body === */
body {
    background: #f8f8f8;
    color: #333;
}

/* === Container === */
.container {
    max-width: 800px;
    background: #fff;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
 
}

/* === Slider === */
.slider-wrapper {
    position: relative;
    overflow: hidden;
  
    margin-bottom: 15px;
}

.slider {
    display: flex;
    transition: transform 0.4s ease-in-out;
    width: 100%;
}

.slider img {
    min-width: 100%;
    height: auto;
    
    object-fit: cover;
}

.slider-nav {
    text-align: center;
    margin-top: 5px;
}

.slider-nav button {
    background: #ddd;
    border: none;
    margin: 0 4px;
    padding: 5px 10px;
    border-radius: 50px;
    cursor: pointer;
}

.slider-nav button.active {
    background-color: #FFE81B;
}

/* === Informasi Produk === */
h2 {
    font-size: 22px;
    font-weight: bold;
    padding: 10px 15px;
}

.harga {
    font-size: 24px;
    color: #ff0000;
    font-weight: bold;
    padding: 5px 15px;
}

p {
    font-size: 16px;
    padding: 5px 15px;
}

.stok {
    font-size: 16px;
    font-weight: bold;
    padding: 5px 15px 10px;
}

/* === Tombol === */
.btn {
    display: inline-block;
    text-align: center;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.cart-btn {
    background-color: #FFE81B; /* Yellow color for "Keranjang" */
    color: #000;
    width: 20%; /* Set width to 30% for Keranjang */
    text-transform: uppercase;
    display: inline-block;
    border: none;
    text-align: center;
    margin-right: 1px; /* Ensures buttons are side by side with no gap */
}

.buy-btn {
    background-color: #FFE81B; /* Yellow color for "Beli Sekarang" */
    color: #000;
    width: 80%; /* Set width to 70% for Beli Sekarang */
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    border: 4px;
    font-weight: bold;
    margin-left: 1px; /* Ensures buttons are side by side with no gap */
}

.btn:hover {
    opacity: 0.85;
}

.button-row {
    display: flex;
    justify-content: flex-start; /* Aligns buttons side by side */
    padding: 15px 0;
}

.cart-btn, .buy-btn {
    display: inline-block;
    text-align: center;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
}

/* === Modal === */
.modal-login {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    width: 90%;
    max-width: 350px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    position: relative;
}

.modal-content h3 {
    margin-bottom: 15px;
}

.modal-content a {
    display: inline-block;
    margin: 10px 5px 0;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    color: rgb(6, 6, 6);
    background-color: #FFE81B;
}

.modal-close {
    background: none;
    border: none;
    font-size: 20px;
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    color: #ff0000;
}

/* === Responsive === */
@media (max-width: 768px) {
    .container {
        margin: 15px;
        padding: 15px;
    }

    h2 {
        font-size: 20px;
    }

    .harga {
        font-size: 22px;
    }

    p, .stok {
        font-size: 14px;
    }

    .btn {
        font-size: 14px;
        padding: 12px;
    }

    .cart-btn, .buy-btn {
        width: 100%; /* Ensure buttons are same size on tablet screens */
        padding: 12px;
        font-size: 14px;
    }

    .button-row {
        flex-direction: row;
    }
}

@media (max-width: 480px) {
    .cart-btn, .buy-btn {
        width: 100%; /* Ensures buttons are side by side */
        padding: 10px;
        font-size: 14px;
    }

    .button-row {
        gap: 0; /* Keeps no gap between the buttons */
    }
}
