/* Hilangkan panah di input number untuk Chrome, Safari, Edge */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}



/* Skeleton Loader for Carousel */
.skeleton-carousel {
    width: 100%;
    height: 400px;
    /* Adjust height as per your carousel */
    background: linear-gradient(90deg, #e0e0e0 25%, #f0f0f0 50%, #e0e0e0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
    margin-bottom: 20px;
}


.modal-backdrop {
    z-index: 1040 !important;
    /* Pastikan backdrop di belakang modal */
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    /* Default tersembunyi */
    overflow-y: auto;
    /* Tambahkan ini untuk scroll */
    z-index: 1050 !important;
}

.modal-container {
    position: relative;
    margin: 35px auto;
    /* Berikan margin untuk memberi ruang di atas dan bawah */
    max-width: 600px;
    /* Atur lebar maksimal */
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}




/* Tambahkan animasi untuk navbar */
.navbar {
    transition: top 0.3s;
}

/* .navbar {
  background: transparent !important;
  transition: top 0.3s;
  top: 0;
  width: 100%;
  z-index: 1000; 
} */

.navbar.hidden {
    top: -60px;
    /* Sesuaikan dengan tinggi navbar Anda */
}

.btn-close {
    font-size: 1.5rem;
    color: black;
    border: none;
    background: transparent;
    cursor: pointer;
}


.modal-content {
    max-width: 700px;
    margin: auto;
    padding: 20px;
    border-radius: 10px;
}

.main-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-height: 500px;
    overflow: hidden;
}

.main-image {
    max-height: 500px;
    width: auto;
    object-fit: contain;
    border-radius: 5px;
}

.thumbnail-container {
    flex-wrap: wrap;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.thumbnail-image {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
}

.thumbnail-image:hover {
    border-color: #007bff;
    transform: scale(1.1);
    transition: all 0.2s ease-in-out;
}

.product-content {
    margin-top: 20px;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-footer {
    border-top: none;
    padding-top: 0;
}

#shopping-cart-btn {
    display: none;
}



/* cart badge */
#cart-badge {
    font-size: 12px;
    /* Ukuran angka di badge */
    padding: 5px 7px;
    /* Padding dalam badge */
    color: white;
    top: 1px;
    /* Posisi badge lebih ke atas */
    right: 3px;
    /* Posisi badge lebih ke kiri mendekati ikon keranjang */
    transform: translate(15%, -85%);
    /* Penyesuaian posisi */
    z-index: 1;
    /* Pastikan badge di atas ikon keranjang */
    display: none;
    align-items: center;
    justify-content: center;
    width: 18px;
    /* Ukuran lingkaran badge */
    height: 18px;
    /* Ukuran lingkaran badge */
}


#shopping-cart-btn {
    position: relative;
}


/* Penyesuaian produk untuk perangkat kecil */
#product-container .col {
    padding: 5px;
    /* Sesuaikan padding antar produk */
}

.card {
    border: none;
    /* Hilangkan border default jika diperlukan */
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}



/* Responsif untuk modal shopping cart */
@media (max-width: 576px) {

    /* Modal shopping cart */
    .modal-dialog {
        width: 95%;
        /* Modal lebih kecil di perangkat kecil */
        margin: 5px auto;
        /* Margin lebih kecil */
    }

    .modal-content {
        padding: 10px;
        border-radius: 8px;
    }


    .item-detail {
        font-size: small;
        margin-left: 10px;
        max-width: 150px;
    }

    .item-detail h6 {
        font-size: 0.8rem;
    }

    .quantity-control input {
        width: 5px;
        text-align: center;
        font-size: 0.8rem;
        padding: 0;
        border: 1px solid #ddd;
        border-radius: 4px;
    }

    /* Header modal */
    .modal-header h5 {
        font-size: 1rem;
        /* Ukuran header lebih kecil */
        text-align: center;
    }

    /* Gambar produk */
    .cart-item img {
        width: 40px;
        /* Gambar lebih kecil */
        height: auto;
        border-radius: 5px;
    }


    .item-price {
        font-size: 0.7rem;
        /* Ukuran harga lebih kecil */
        color: #6c757d;
    }

    /* Kontrol kuantitas */
    .quantity-control {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }

    .quantity-control button,
    .quantity-control input {
        width: 25px;
        /* Ukuran tombol dan input lebih kecil */
        height: 25px;
        font-size: 0.8rem;
        padding: 0;
    }

    .quantity-control input {
        text-align: center;
        font-size: 0.8rem;
    }

    /* Tombol hapus */
    .remove-item {
        font-size: 0.2rem;
        size: 0.5rem;
        /* Ukuran ikon hapus lebih kecil */
    }

    /* Footer modal */
    .modal-footer {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        /* Beri jarak antar tombol */
        justify-content: center;
    }

    .modal-footer h5 {
        font-size: 0.9rem;
        /* Ukuran teks total lebih kecil */
        flex-basis: 100%;
        /* Total memenuhi satu baris */
        text-align: center;
    }

    .modal-footer .btn {
        flex: 1;
        /* Tombol memenuhi lebar */
        font-size: 0.8rem;
        padding: 8px;
        /* Padding tombol lebih kecil */
    }

    /* Margins between items */
    .cart-item {
        margin-bottom: 10px;
        /* Jarak antar item */
    }

    /* Jarak antar elemen dalam modal */
    .cart-items {
        gap: 5px;
    }
}


/* button checkout di modal keranjang */

#checkout-btn {
    display: none;
}

.up-case {
    text-transform: uppercase;
}

.card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: start;
    margin-bottom: 15px;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-text {
    margin-top: auto;
}

.btn {
    margin-top: 10px;
}

/* style untuk section contact */

.contact {
    padding: 60px 15px;
    background-color: #f9f9f9;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.contact h2 span {
    color: #dc3545;
}

.contact p {
    text-align: center;
    margin-bottom: 40px;
    color: #6c757d;
}

.contact .map {
    border: 0;
    width: 100%;
    height: 400px;
}

.contact form {
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contact .input-group {
    margin-bottom: 20px;
}

.contact .input-group input,
.contact .input-group textarea {
    border-radius: 0.25rem;
    padding: 10px;
    border: 1px solid #ced4da;
    width: 100%;
}

.contact .btn {
    display: block;
    width: 100%;
    background-color: #dc3545;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 0.25rem;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.contact .btn:hover {
    background-color: #c82333;
}

.contact .input-group i {
    position: absolute;
    margin-left: 10px;
    margin-top: 12px;
    color: #6c757d;
}

.contact .input-group input,
.contact .input-group textarea {
    padding-left: 35px;
}

/* toast notification */

#toast-notification {
    top: 70px;
    right: 10px;
    z-index: 1050;
    min-width: 300px;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#toast-notification .toast-body {
    /* background-color: #343a40; */
    /* Dark background */
    color: #fff;
    /* White text */
    padding: 15px;
    border-radius: 8px 8px 0 0;
    font-size: 1rem;
}

.bg-danger {
    background-color: #dc3545;
}

.bg-success {
    background-color: green;
}

#toast-notification .close {
    color: #fff;
    opacity: 0.8;
    font-size: 1.2rem;
}

#toast-notification .close:hover {
    opacity: 1;
}

#toast-notification .toast-header {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
}

#toast-notification .toast-body {
    border-radius: 0 0 8px 8px;
}

footer {
    background-color: #343a40;
    color: #ffffff;
    /* Memastikan teks default berwarna putih */
    padding: 40px 20px;
}

footer h2,
footer h3 {
    color: #dc3545;
    /* Warna judul tetap merah */
}

footer p,
footer li {
    color: #f8f9fa;
    /* Warna teks deskripsi dan daftar lebih terang */
}

footer a {
    color: #dc3545;
    /* Warna tautan tetap merah */
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.footer-wrapper div {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 250px;
}

.line {
    margin-top: 20px;
    border-top: 1px solid #6c757d;
    padding-top: 20px;
    text-align: center;
}

.line .footer-link svg {
    margin-right: 10px;
    vertical-align: middle;
    fill: #ffffff;
    transition: fill 0.3s;
}

.line .footer-link svg:hover {
    fill: #dc3545;
}

.footer-p {
    font-size: 0.9rem;
    /* Perbaiki ukuran font agar proporsional */
    color: #adb5bd;
    /* Warna teks footer lebih cerah */
}



/* Responsif pada layar kecil */
@media (max-width: 767px) {
    .contact h2 {
        font-size: 1.5rem;
    }

    .contact p {
        font-size: 1rem;
    }

    .contact .col-md-6 {
        flex: 1 1 100%;
        /* Kolom menjadi full-width pada layar kecil */
    }

    .contact .col-md-6 iframe {
        height: 300px;
        /* Mengurangi tinggi iframe di layar kecil */
    }

    .contact form .form-control {
        padding: 10px;
        font-size: 0.9rem;
    }

    .contact form button {
        width: 100%;
        /* Tombol kirim menjadi penuh di layar kecil */
    }
}


/* menu admin */
#admin-menu {
    display: none;
    font-weight: bolder;
}



/* Profil icon (bulat) */
.profile-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    /* Warna background */
    color: #dc3545;
    /* Warna teks */
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    border: 1px solid #dc3545;
    /* Membuat elemen menjadi bulat */
    cursor: pointer;
    user-select: none;
}

/* Dropdown menu styling */
.dropdown-menu {
    display: none;
    /* Awalnya menu disembunyikan */
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    width: 200px;
    z-index: 1000;
}

/* Dropdown menu items */
.dropdown-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-menu ul li {
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

.dropdown-menu ul li a {
    text-decoration: none;
    color: #333;
    width: 100%;
}

.dropdown-menu ul li a:hover {
    background-color: #f1f1f1;
    color: red;
}

/* Separator line */
.dropdown-menu hr {
    margin: 5px 0;
    border: none;
    border-top: 1px solid #ddd;
}



/* shopping cart */

/* Styling for cart item */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.cart-item img {
    width: 80px;
    height: auto;
    border-radius: 5px;
}

.item-detail {
    flex-grow: 1;
    margin-left: 10px;
}

.item-price {
    font-weight: bold;
    color: #333;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantity-control input {
    width: 50px;
    text-align: center;
}

.action-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-icons i {
    cursor: pointer;
    color: red;
}

.remove-item {
    cursor: pointer;
    color: red;
    margin-left: 5px;
}