.ps--active-x > .ps__rail-x,
.ps--active-y > .ps__rail-y {
    display: none !important;
}

/* START OF CUSTOMER ORDER CSS */
.margin-left-custom {
    margin-left: 2rem;
}

body {
    height: 100vh !important;
}

.bg-customer-order {
    background-color: #292c2f !important;
    color: white;
    overflow-y: auto;
}

.bg-customer-order h5,
.bg-customer-order h4 {
    color: white; /* Sets the text color */
}
h5,
h4,
p {
    font-size: 13px !important;
}

.bg-customer-order label {
    color: white;
}

.customer-view {
    width: 100%;
    max-width: 430px;
    margin: 0 auto !important;
    background-color: #292c2f !important;
    padding: 0px; /* Buat padding agar konten tidak menempel pada tepi */
}

#root {
    height: 100vh !important;
    max-width: 430px;
    margin: 0 auto !important;
}

.product-image {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 221px;
    width: 430px;
    object-fit: cover;
    /* transform: translate(-50%, -140%); */
}

.channel-icon {
    width: 50%; /* Atur ukuran gambar lebih kecil untuk mobile */
}

.title-page {
    font-size: 19;
}
.navbar-brand-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #292c2f;
    padding: 20px;
}

.sticky-add-to-cart {
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.cart-button {
    /* background-color: #292c2f; */
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
}

.cart-button i {
    color: white;
}

.navbar-brand-img {
    height: 60px;
    width: 100px;
    margin-bottom: -25px;
}
.thumbnail {
    width: 100%;
    height: 400px;
    border-radius: 15px;
    /* Sesuaikan tinggi agar thumbnail menjadi landscape */
    object-fit: cover;
    /* Menjaga rasio aspek gambar */
}

.thumbnail-container {
    position: relative;
    width: 100%;
    height: 220px;
    /* Sama dengan tinggi thumbnail */
}

.thumbnail-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.small-image {
    width: 65px;
    /* Lebar gambar kecil */
    height: 100px;
    /* Tinggi gambar kecil */
    object-fit: cover;
    margin-bottom: 10px;
    /* Spasi antar gambar kecil */
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    color: white;
    padding: 10px;
    font-size: 20px;
    font-weight: bold;
}

.basket-button {
    background-color: #bd3d6e;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 10px 20px; /* Padding untuk tombol */
    font-size: 1rem;
    display: flex;
    align-items: center;
    width: 25%; /* Membuat tombol mengambil lebar penuh */
    max-width: 600px; /* Membatasi lebar maksimum */
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.font-style {
    font-family: sans-serif;
}

.copyright-text {
    text-align: center;
    margin-top: 10px; /* Spasi antara tombol dan teks copyright */
    font-size: 14px; /* Ukuran font copyright */
}

.basket-button:hover {
    background-color: #e58189;
    text-decoration: none;
    color: #fff;
}

.basket-button i {
    margin-right: 20px;
}

.basket-button span {
    flex: 1; /* Allow text to take available space */
    text-align: center; /* Center the text */
}

.basket-button h5 {
    margin-left: 20px; /* Increase spacing between text and total price */
    white-space: nowrap; /* Prevent text wrapping */
}

/* Ensure the modal backdrop covers the screen */
.modal.fade.show {
    display: block;
    background: rgba(0, 0, 0, 0.5);
}

/* Modal dialog styling */
.modal-dialog {
    max-width: 90%;
    margin: 1.75rem auto;
}

/* Modal content styling */
.modal-content {
    border-radius: 0.5rem;
}

/* Modal header and footer styling */
.modal-header,
.modal-footer {
    border-bottom: 1px solid #dee2e6;
}

[x-cloak] {
    display: none;
}

.slide-up-panel {
    max-height: 80vh; /* Atur tinggi maksimum menjadi setengah layar */
    overflow-y: auto; /* Aktifkan scroll vertikal */
    position: fixed;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Tambahkan efek shadow */
    border-radius: 10px; /* Opsional: untuk sudut yang lebih halus */
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #ddd;
    transition: transform 0.3s ease-in-out;
    z-index: 1050;
    backdrop-filter: blur(5px); /* Blur di belakang panel */

    /* Ensure it appears above other content */
}

.slide-up-panel.closed {
    transform: translateY(100%);
}

.slide-up-panel.open {
    transform: translateY(0);
}

/* button round */
.btn-round {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
}

.number {
    width: 40px;
    text-align: center;
}

.input-group .form-control {
    border-radius: 40px !important;
}

.input-group .input-group-text {
    border-top-left-radius: 40px !important;
    border-bottom-left-radius: 40px !important;
}

.card-product-container {
    background-color: #292c2f;
    /* padding: 10px; */
}

.card-title.title-product {
    color: #ffff;
    padding-left: 10px;
}

.btn.btn-add-product {
    background-color: #bd3d6e;
    color: #fff;
    border-radius: 20px;
    font-size: 14px;
    padding: 8px 15px 8px 15px;
    text-transform: capitalize;
}

.btn.btn-add-product:hover {
    background-color: #fff; /* Warna latar belakang saat hover */
    color: #bd3d6e; /* Warna teks tetap */
}

.btn.btn-categori-seleraklasik {
    background-color: #fff;
    color: #bd3d6e;
    font-size: 10px;
    text-transform: capitalize;
}

.list-group-item.container-group {
    background-color: #292c2f;
    color: #fff;
}
.btn.btn-round-button-back {
    width: 40px; /* Lebar tombol yang lebih besar */
    height: 40px; /* Tinggi tombol yang lebih besar */
    border: 2px solid transparent; /* Border transparan untuk ukuran tetap saat hover */
    border-radius: 50%; /* Membuat tombol bulat */
    background-color: #868686; /* Warna latar belakang */
    color: rgb(255, 255, 255); /* Warna teks */
    font-size: 18px; /* Ukuran font yang lebih kecil agar sesuai */
    display: flex; /* Menggunakan flexbox */
    align-items: center; /* Menyejajarkan konten secara vertikal */
    justify-content: center; /* Menyejajarkan konten secara horizontal */
    cursor: pointer; /* Menunjukkan kursor pointer saat hover */
    transition: background-color 0.3s, color 0.3s, border-color 0.3s; /* Transisi pada warna latar belakang dan teks */
}

.btn.btn-round-button-back:hover {
    background-color: #6c757d; /* Warna latar belakang saat hover */
    color: #ffffff; /* Warna teks tetap */
    border-color: #ffffff; /* Border putih saat hover */
}

.round-button-seleraklasik {
    width: 20px; /* Lebar tombol */
    height: 20px; /* Tinggi tombol */
    border: 1px solid transparent; /* Border transparan untuk memastikan ukuran tetap saat hover */
    border-radius: 50%; /* Membuat tombol bulat */
    background-color: #bd3d6e; /* Warna latar belakang (biru) */
    color: white; /* Warna teks */
    font-size: 24px; /* Ukuran font */
    margin-right: 5px;
    display: flex; /* Menggunakan flexbox */
    align-items: center; /* Menyejajarkan konten secara vertikal */
    justify-content: center; /* Menyejajarkan konten secara horizontal */
    cursor: pointer; /* Menunjukkan kursor pointer saat hover */
    transition: background-color 0.3s, color 0.3s, border-color 0.3s; /* Transisi pada warna latar belakang dan teks */
}

.round-button-seleraklasik:hover {
    border-color: #bd3d6e; /* Warna border saat hover */
    background-color: white; /* Warna latar belakang saat hover */
    color: #bd3d6e; /* Warna teks saat hover */
}

.button-scroll-container {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
}

.btn-categori-seleraklasik.active {
    background-color: #bd3d6e;
    color: white !important;
    font-size: 10px;
    text-transform: capitalize;
}

.bg-seleraklasik {
    background-color: #bd3d6e;
    color: white;
}
.text-seleraklasik {
    color: #bd3d6e;
}

.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%; /* Lebar penuh */
    display: flex;
    justify-content: center; /* Agar tombol berada di tengah */
    padding: 10px;
    z-index: 1000;
    /* background-color: #fff; */
    /* box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); */
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.img-selera-klasik {
    /* padding: 0.25rem; */
    /* background-color: #fff; */
    /* border: 1px solid #dee2e6; */
    border-radius: 2px;
    max-width: 51px;
    height: 57px;
}

.form-customer {
    display: block;
    width: 100%;
    padding: 6px 6px;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4rem;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d2d6da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: 3px;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.close-panel {
    background-color: rgba(230, 86, 86, 0);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    margin-bottom: 30px;
    transition: background-color 0.3s ease;
}

.close-panel i {
    font-size: 18px;
}

.close-panel:hover {
    background-color: rgb(73, 0, 0);
}

.qty-add {
    --bs-gutter-y: 0;
    display: flex;
    padding-bottom: 15px;
    margin-left: 15px;
}

.btn.btn-add-product3 {
    background-color: #bd3d6e;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    padding: 13px;
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .customer-view {
        width: 100%;
        max-width: 430px;
        margin: 0 auto !important;
        background-color: #292c2f;
        padding: 0px;
    }
    .image-container {
        width: 100%; /* Sesuaikan lebar container sesuai kebutuhan */
        height: 10px; /* Sesuaikan tinggi container, bisa diubah sesuai desain */
    }

    .product-image {
        top: 0px;
        left: 0px;
        width: 100%;
        object-fit: cover;
        /* transform: translate(-50%, -140%); */
    }

    #root {
        height: 100vh !important;
        max-width: 430px;
        margin: 0 auto !important;
    }

    .card-product-container {
        background-color: #292c2f;
    }

    /* Card product container */
    .customer-view div .card-product-container {
        border-style: none;
    }

    .btn.btn-add-product {
        background-color: #bd3d6e;
        color: #fff;
        border-radius: 20px;
        font-size: 10px;
        padding: 8px 15px 8px 15px;
        text-transform: capitalize;
    }

    .btn.btn-add-product3 {
        background-color: #bd3d6e;
        color: #fff;
        border-radius: 8px;
        font-size: 13px;
        padding: 13px;
        text-transform: capitalize;
    }

    .btn.btn-categori-seleraklasik {
        background-color: #fff;
        color: #bd3d6e;
        font-size: 10px;
        text-transform: capitalize;
    }

    .btn-categori-seleraklasik.active {
        background-color: #bd3d6e;
        color: white !important;
        font-size: 10px;
        text-transform: capitalize;
    }

    .card-title.title-product {
        color: #ffff;
        padding-left: 10px;
    }
    .thumbnail-container {
        position: relative;
        width: 100%;
        /* height: 300px; */
    }

    .sticky-footer {
        position: fixed; /* Mengatur posisi tetap */
        bottom: 0; /* Mengatur posisi di bagian bawah */
        padding: 10px; /* Padding yang diinginkan */
        color: white; /* Warna teks */
        z-index: 1000; /* Pastikan elemen tetap di atas */
        text-align: center; /* Memusatkan teks */
        background-color: #bd3d6e00;
    }

    .channel-icon {
        width: 80px;
    }

    .basket-button {
        width: 90%; /* Lebar tombol di mobile lebih besar */
        font-size: 14px; /* Ukuran font lebih kecil */
        padding: 12px; /* Padding yang lebih besar untuk sentuhan */
        border-radius: 8px;
        justify-content: space-between; /* Elemen pertama di kiri, elemen kedua di kanan */
    }

    .close-panel {
        background-color: rgba(125, 102, 102, 0);
        color: white;
        border: none;
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 20px;
        cursor: pointer;
        margin-bottom: 30px;
        transition: background-color 0.3s ease;
    }

    .close-panel i {
        font-size: 18px;
    }

    .close-panel:hover {
        background-color: rgb(73, 0, 0);
    }

    .qty-add {
        --bs-gutter-y: 0;
        display: flex;
        padding-bottom: 15px;
    }

    .overlay {
        position: fixed; /* Mengisi seluruh halaman */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Warna gelap transparan */
        backdrop-filter: blur(5px); /* Efek blur di latar belakang */
        z-index: 98; /* Pastikan berada di bawah tombol close */
        display: none; /* Sembunyikan secara default */
    }

    .overlay[x-show="showPanel"] {
        display: block; /* Tampilkan saat panel terbuka */
    }
}

/* END OF CUSTOMER ORDER CSS  */

.order-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    background-color: #ffffff;
}

.order-card:hover {
    background-color: #f8f9fa; /* Warna latar belakang berubah */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Tambahkan bayangan */
    transform: translateY(-5px); /* Geser sedikit ke atas */
}
.promo-badge {
    position: absolute;
    bottom: 17px;
    background: #bd3d6e;
    color: white;
    padding: 2px 13px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1;
    animation: blinkPromo 2s infinite;
    overflow: hidden; /* Tambahkan ini untuk membatasi efek shine */
}

@keyframes blinkPromo {
    0% {
        opacity: 1;
        background: linear-gradient(45deg, #ff4444, #bd3d6e);
    }
    50% {
        opacity: 0.5;
        background: linear-gradient(45deg, #bd3d6e, #ff4444);
    }
    100% {
        opacity: 1;
        background: linear-gradient(45deg, #ff4444, #bd3d6e);
    }
}

.promo-badge::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%; /* Mulai dari luar badge sebelah kiri */
    width: 50%; /* Lebar efek shine */
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.6),
        transparent
    );
    transform: skewX(
        -25deg
    ); /* Mengubah dari rotate ke skewX untuk efek yang lebih baik */
    animation: shine 2s infinite;
}

.badge.bg-selera-klasik {
    background: #bd3d6e;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* PRODUCT CSS */
.image-box {
    border: 2px solid #ccc;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.add-image-label {
    cursor: pointer;
    color: #757d87; /* Warna ikon */
}

.darken-card {
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    color: #fff; /* Optional: change text color to white for better contrast */
}

.avatar-product {
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    border-radius: 0.75rem;
    height: 88px;
    width: 88px;
    transition: all 0.2s ease-in-out;
    object-fit: cover;
}

/* END OF PRODUCT CSS */

/* BASKET CUSTOMER ORDER CSS */
.basket-button {
    z-index: 999; /* Pastikan tombol berada di depan */
    pointer-events: auto;
}

.cart-items-container {
    max-height: 300px; /* Batas tinggi untuk kontainer scroll */
    overflow-y: auto; /* Aktifkan scroll vertikal */
    padding-right: 10px; /* Tambahkan padding untuk menghindari overlap dengan scrollbar */
    position: relative; /* Pastikan posisi elemen */
}

/* Gaya untuk form pencarian */
.custom-search-form {
    display: flex;
    align-items: center;
    gap: 6px; /* Kurangi jarak antar elemen */
}

.custom-input {
    flex: 1;
    height: 30px; /* Kurangi tinggi input */
    padding: 3px 8px; /* Kurangi padding */
    font-size: 14px; /* Perkecil font */
    border: 1px solid #ced4da;
    border-radius: 4px; /* Sesuaikan sudut */
    outline: none;
}

/* Tambahkan efek fokus */
.custom-input:focus {
    border-color: #5c9ded; /* Warna biru saat fokus */
    box-shadow: 0 0 0 0.2rem rgba(92, 157, 237, 0.25);
}

.custom-btn {
    height: 30px; /* Sesuaikan tinggi tombol */
    width: 40px; /* Tambahkan lebar tetap */
    padding: 0; /* Hilangkan padding default */
    font-size: 14px; /* Perkecil ukuran font */
    background-color: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tambahkan hover efek pada tombol */
.custom-btn:hover {
    background-color: #c82333; /* Warna merah lebih gelap saat hover */
}

/* Tambahkan efek fokus pada tombol */
.custom-btn:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5); /* Efek fokus dengan warna merah */
}

/* Menambahkan margin bawah khusus pada form pencarian */
.custom-search-form-container {
    margin-bottom: 1.5rem; /* Memberikan jarak 1.5 rem */
}

.pagination {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.pagination li {
    margin: 0 5px;
}

.pagination li a,
.pagination li span {
    padding: 10px 15px;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.pagination li a:hover {
    background-color: #f8f9fa;
}

.pagination li.active span {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination .active .page-link {
    background-color: #ff4b5c;
    border-color: #ff4b5c;
    color: #fff;
}

.pagination .disabled .page-link {
    pointer-events: none;
    color: #6c757d;
}

/* Sticky search bar dengan tema gelap */
.sticky-search-bar-dark {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #292c2f; /* Warna latar abu-abu gelap */
    padding: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

/* Form pencarian */
.search-form-dark {
    display: flex;
    align-items: center;
}

/* Input pencarian */
.search-input-dark {
    flex: 1;
    height: 40px;
    border-radius: 5px;
    padding: 5px 10px;
    border: 1px solid #555;
    background-color: #292c2f; /* Background abu-abu gelap */
    color: #fff; /* Teks putih */
    outline: none;
}

.search-input-dark::placeholder {
    color: #bbb; /* Placeholder abu-abu terang */
}

/* Tombol pencarian */
.search-button-dark {
    height: 40px;
    border-radius: 5px;
    margin-left: 10px;
    padding: 0 15px;
    background-color: #292c2f; /* Abu-abu */
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button-dark:hover {
    background-color: #666; /* Abu-abu lebih terang saat hover */
    border: 1px solid #777;
}

/* select2 */
.select2-container {
    width: 100% !important;
}

/* Styling utama untuk single dan multiple select */
.select2-container .select2-selection--single,
.select2-container .select2-selection--multiple {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 0.5rem 0.75rem;
    padding-left: 35px !important;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4rem;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #d2d6da;
    border-radius: 0.5rem;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

/* Fokus */
.select2-container .select2-selection--single:focus,
.select2-container .select2-selection--multiple:focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
}

/* Styling dropdown Select2 */
.select2-container--default .select2-dropdown {
    border-color: #d2d6da;
    border-radius: 0.5rem;
}

/* Styling teks yang dipilih di multiple select */
.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    background-color: #007bff;
    border: 1px solid #007bff;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.select2-container--default
    .select2-selection--multiple
    .select2-selection__choice {
    /* background-color: #e4e4e4; */
    border: 1px solid #aaa;
    color: #000000;
    border-radius: 4px;
    cursor: default;
    float: left;
    margin-right: 5px;
    margin-top: 5px;
    padding: 0 5px;
}

/* Styling untuk arrow pada single select */
.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 100%;
    right: 10px;
    top: 18px !important;
    transform: translateY(-50%);
}
.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    color: #444;
    line-height: 20px !important;
}
.select2-container--default
    .select2-selection--single
    .select2-selection__clear {
    cursor: pointer;
    float: right;
    top: -2px !important;
    font-weight: bold;
}
/* Warna border merah jika invalid */
.select2-container.is-invalid .select2-selection {
    border-color: #dc3545 !important;
}
