:root {
    --primary: #000000;
    --accent: #000000;
    --light-bg: #ffffff;
    --dark-bg: #ffffff;
}

body {
    font-family: 'Inter Tight', sans-serif;
    background-color: var(--light-bg);
    color: var(--primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.logo-img {
    height: 56px;
    object-fit: contain;
    margin-right: 0.5rem;
}

.search-box {
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    background-color: #f0f0f0;
    border: 1px solid #ffffff;
    color: var(--primary);
}

/* Produk grid */
.produk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: flex-start;
    justify-items: center;
    padding: 10px 0;
}

.produk-card {
    background: white;
    border-radius: 10px;
    width: 160px;
    max-width: 220px;
    height: 240px;
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Tambahkan shadow */
    transition: box-shadow 0.2s ease-in-out;
}

.produk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.produk-card img.product-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    background-color: #f8f9fa;
}

.produk-info {
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.nama-produk {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--primary);
}

.harga-stok-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.68rem;
    color: var(--primary);
    line-height: 1.1;
}

.harga-stok-row .stok {
    text-align: left;
    flex: 1;
}

.harga-stok-row .harga {
    text-align: right;
    font-weight: 600;
}

.produk-info .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.7rem;
    gap: 4px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.4px;
    line-height: 1.2;
    color: var(--primary);
}

.produk-info .info-row .nama-produk {
    font-weight: 700;
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.produk-info .info-row .harga-stok {
    flex-shrink: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 2px;
}


.produk-info h6 {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: var(--primary);
    text-align: left;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.produk-info .harga-stok {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.7rem;
    gap: 4px;
    line-height: 1;
}

/* Modal penuh */
.product-modal {
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.4);
}

/* === Modal Produk === */
.product-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Konten modal naik dari bawah */
.product-modal-content {
    background-color: #ffffff;
    max-width: 100vw;
    width: 100%;
    max-height: 65vh;
    height: 65vh;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    position: relative;
    display: flex;
    flex-direction: row;
}


.modal-left {
    flex: 0 0 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal-left img.modal-image {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: cover;
    border-radius: 10px;
    background-color: #f8f8f8;
}

.modal-right {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.product-modal .modal-image {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.product-modal .modal-title {
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.product-modal .stok {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.product-modal .deskripsi {
    font-size: 0.85rem;
    color: #555;
    white-space: pre-line;
    margin-bottom: 1rem;
}

.product-modal .close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

/* Tombol close tetap di kanan atas */
.product-modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 100vw;
    height: 65vh;
    /* ✅ Setengah layar */
    max-height: 65vh;
    border-radius: 20px 20px 0 0;
    position: relative;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    /* height: 100px; */
}

.dropdown-menu {
    z-index: 1060;
    transition: all 0.2s ease-in-out;
    /* agar dropdown muncul di atas header dan elemen lain */
}

.modal-content {
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.modal-title {
    font-size: 1.3rem;
}

.about-modal-img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain;
}

/* MODAL STRUCTURE */
.modal-top {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.modal-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
    background-color: #f8f8f8;
}

.modal-info {
    flex-grow: 1;
}

.modal-title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.stok-text,
.modal-harga {
    font-size: 0.85rem;
    margin: 0;
}

.modal-info h5 {
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.stok-text {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.modal-info .stok-text {
    font-size: 0.85rem;
    color: #444;
    margin: 0;
}

.deskripsi-text {
    font-size: 0.85rem;
    color: #555;
    margin-top: 1rem;
    white-space: pre-line;
}

.modal-info .deskripsi-text {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.modal-harga {
    font-weight: bold;
    font-size: 1rem;
    margin: 0.5rem 0;
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.varian-list {
    font-size: 0.55rem;
    /* atau 12px */
    line-height: 1.2;
    color: #000000;
    /* atau warna sesuai tema kamu */
}

.variant-btn.active {
    background-color: #000 !important;
    color: white !important;
    transition: all 0.2s ease;
}

.modal-actions input[type="number"] {
    #qtyInput {
        margin-left: auto;
        margin-right: 0;
        width: 60px !important;
        text-align: center;
    }

    width: 70px;
    padding: 0.3rem 0.4rem;
}

.invoice-box {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 1rem;
    background: white;
    font-family: "Segoe UI", sans-serif;
}

.header-bar {
    background-color: #212529;
    color: white;
    padding: 0.75rem 1rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.badge-valid {
    background-color: gold;
    color: black;
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* INI BAGIAN INVOICE */
.invoice-table {
    width: 100%;
    margin-top: 1rem;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.invoice-table th,
.invoice-table td {
    padding: 0.6rem;
    border: 1px solid #ddd;
    text-align: center;
}

.total-summary {
    text-align: right;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.total-summary strong {
    font-size: 1.2rem;
}


/* Mobile / Android: gambar lebih kecil */
@media (max-width: 576px) {

    .about-modal-img,
    .contact-modal-img {
        max-height: 160px;
    }

    .modal-content {
        z-index: 9999;
        max-height: 85vh;
        overflow-y: auto;
    }

    .fixed-header {
        padding: 0.5rem 1rem;
    }

    body {
        padding-top: 35px;
        /* agar isi tidak tertimpa */
    }

    .product-modal-content {
        flex-direction: column;
        height: 60vh;
        max-height: 60vh;
        overflow: hidden;
    }

    .modal-left {
        width: 100%;
        height: 40%;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-left img.modal-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 0;
    }

    .modal-right {
        width: 100%;
        flex: 1;
        padding: 0.75rem 1rem;
        overflow-y: auto;
    }

    .product-modal-content .close-modal {
        top: 0.5rem;
        right: 1rem;
        font-size: 1.5rem;
        z-index: 10;
        color: black;
    }
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: white;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Animasi naik */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

#cariBookingInput:focus {
    border-color: #00695c !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 77, 64, 0.25);
}

/* ================= KATEGORI SCROLL ================= */
.kategori-section {
    background-color: #f1f1f1;
    margin-top: -0.8rem;
    margin-bottom: 0rem;
    padding: 0.5rem 0;
    position: relative;
}

.kategori-container-scroll {
    display: inline-flex;
    gap: 0.5rem;
}

.kategori-scroll-area {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-grow: 1;
}

.kategori-scroll-area::-webkit-scrollbar {
    display: none;
}

.kategori-btn {
    flex: 0 0 auto;
    border-radius: 6px;
    border: 1px solid #000;
    color: #000;
    font-size: 0.6rem;
    padding: 0.4rem 0.9rem;
    background-color: transparent;
}

.kategori-btn.active,
.kategori-btn:hover {
    background-color: #000;
    color: white;
    border-color: #000;
}

.kategori-checkout-box {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1rem;
    background-color: transparent;
}

#checkoutCountBox {
    background-color: #FFD700;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.btn-dark {
    background-color: #000 !important;
    color: #fff !important;
    border: none;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
}

.btn-dark:hover {
    background-color: #333 !important;
    color: #fff !important;
}

.contact-modal-img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 576px) {
    .about-modal-img {
        max-height: 180px;
    }

    .produk-card {
        margin-left: auto;
        margin-right: auto;
        float: none !important;
    }

    .logo-img {
        height: 32px !important;
    }

    .search-box {
        width: 100%;
    }

    .kategori-section .container-fluid {
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }

    .kategori-checkout-box {
        gap: 0.4rem;
        padding-left: 0.5rem;
    }

    #checkoutCountBox {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .btn-dark {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

.credit {
    font-size: 10px;
    text-align: center;
}

.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.cart-modal.hidden {
    display: none;
}

.cart-modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.cart-item {
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #ffffff;
    gap: 8px;
    margin-bottom: 10px;
    padding: 6px 0;
}

.cart-item div {
    text-align: left;
}

.cart-item input {
    width: 60px;
}

