/* Reset & Fondasi Dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #fcefeebd;
    color: #4a4a4a;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Container Utama ala Aplikasi Mobile */
.app-container {
    width: 100%;
    max-width: 500px;
    background-color: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 90px;
}

/* Bagian Header Utama */
.app-header {
    text-align: center;
    padding: 30px 20px 20px 20px;
    background: linear-gradient(180deg, #fff5f6 0%, #ffffff 100%);
}

.brand-logo-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 15px auto;
    border-radius: 50%;
    background-color: #ffd1d7;
    padding: 4px;
    box-shadow: 0 4px 10px rgba(255, 107, 139, 0.15);
}

.brand-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.brand-name {
    font-size: 26px;
    font-weight: 700;
    color: #ff5274;
    letter-spacing: -0.5px;
}

.brand-name a {
    color: #ff5274;
    text-decoration: none;
}

.brand-slogan {
    font-size: 13px;
    color: #8e8e8e;
    font-style: italic;
    margin-top: 5px;
    line-height: 1.4;
    padding: 0 15px;
}

/* Modul Alur Pengambilan (Tab Pickup / Delivery) */
.order-mode-section {
    padding: 0 20px;
    margin-bottom: 25px;
}

.tab-control {
    display: flex;
    background-color: #f7f7f7;
    border-radius: 30px;
    padding: 4px;
    border: 1px solid #edeecb00;
}

.tab-btn {
    flex: 1;
    border: none;
    background: none;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #7a7a7a;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    background-color: #ff6b8b;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(255, 107, 139, 0.2);
}

/* Panel Detail Pengambilan */
.mode-details-card {
    background-color: #ffffff;
    border: 1px solid #ffe3e7;
    border-radius: 20px;
    padding: 20px;
    margin-top: 15px;
    box-shadow: 0 4px 12px rgba(255, 182, 193, 0.1);
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: #4a4a4a;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-row {
    margin-bottom: 12px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    font-size: 11px;
    font-weight: 700;
    color: #ff8da1;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    color: #333333;
    background-color: #fff9fa;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #fff0f2;
}

/* Katalog Menu & Produk */
.catalog-section {
    padding: 0 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    padding-left: 12px;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 3px;
    width: 4px;
    background-color: #ff6b8b;
    border-radius: 2px;
}

.product-card {
    display: flex;
    background-color: #ffffff;
    border: 1px solid #f9f9f9;
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 107, 139, 0.08);
}

.product-img-box {
    width: 95px;
    height: 95px;
    border-radius: 14px;
    background-color: #fff2f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
}

.product-info {
    flex: 1;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-size: 16px;
    font-weight: 700;
    color: #333333;
    margin-bottom: 4px;
}

.product-desc {
    font-size: 12px;
    color: #888888;
    line-height: 1.4;
    margin-bottom: 8px;
}

.product-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 15px;
    font-weight: 700;
    color: #ff5274;
}

.btn-add-item {
    background-color: #fff5f7;
    border: 1px solid #ffccd5;
    color: #ff6b8b;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-add-item:hover {
    background-color: #ff6b8b;
    color: #ffffff;
    border-color: #ff6b8b;
}

/* Footer Aplikasi */
.app-footer {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff9fa;
    border-top: 1px solid #fff0f2;
    margin-top: auto;
    font-size: 12px;
    color: #b5b5b5;
}

.footer-links {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: #888888;
    text-decoration: none;
    font-weight: 600;
}

/* Bar Keranjang Tempel di Bawah (Sticky Bottom Bar) */
.sticky-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 460px;
    background-color: #ff6b8b;
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(255, 107, 139, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
}

.sticky-cart-bar:hover {
    background-color: #ff5274;
    transform: translateX(-50%) scale(1.02);
}

/* --- FORM & HALAMAN CHECKOUT --- */
.checkout-section {
    padding: 0 20px;
    margin-bottom: 20px;
}

.checkout-list {
    background-color: #fff9fa;
    border: 1px solid #ffe3e7;
    border-radius: 16px;
    padding: 15px;
    margin-bottom: 20px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 8px 0;
    border-bottom: 1px dashed #ffd1d7;
}

.checkout-item:last-child {
    border-bottom: none;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: #4a4a4a;
    margin-bottom: 6px;
    display: block;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ffe3e7;
    border-radius: 12px;
    font-size: 14px;
    background-color: #ffffff;
    color: #333333;
    transition: border-color 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: #ff6b8b;
    background-color: #fff9fa;
}

/* Pilihan Metode Pembayaran */
.payment-methods-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-card {
    border: 1px solid #ffe3e7;
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-card:hover {
    background-color: #fff9fa;
}

.payment-card.selected {
    border-color: #ff6b8b;
    background-color: #fff5f7;
}

.payment-radio {
    accent-color: #ff6b8b;
    width: 18px;
    height: 18px;
}

.payment-info-text h4 {
    font-size: 14px;
    color: #333;
    font-weight: 700;
}

.payment-info-text p {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* --- TAMPILAN HALAMAN SUKSES (AWAITING TRANSFER) --- */
.success-header {
    text-align: center;
    padding: 30px 20px;
}

.success-icon {
    width: 70px;
    height: 70px;
    background-color: #ffa4b6;
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(255, 107, 139, 0.25);
}

.success-title {
    font-size: 22px;
    font-weight: 700;
    color: #333333;
}

.success-subtitle {
    font-size: 13px;
    color: #777777;
    margin-top: 6px;
    line-height: 1.5;
}

.instruction-box {
    background-color: #fff5f6;
    border: 1px solid #ffccd5;
    border-radius: 18px;
    padding: 20px;
    margin: 0 20px 25px 20px;
}

.instruction-title {
    font-size: 12px;
    font-weight: 700;
    color: #ff5274;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    text-align: center;
}

.bank-detail-row {
    margin-bottom: 14px;
}

.bank-detail-row:last-child {
    margin-bottom: 0;
}

.btn-copy {
    background-color: #ffffff;
    border: 1px solid #ffd1d7;
    color: #ff6b8b;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    margin-left: 8px;
}

.btn-copy:hover {
    background-color: #ff6b8b;
    color: white;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25d366;
    color: #ffffff;
    text-decoration: none;
    padding: 16px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    margin: 0 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
    background-color: #1ebd58;
}

/* Kontrol Kuantitas (+ / -) */
.qty-controls {
    display: flex;
    align-items: center;
    background-color: #fff9fa;
    border: 1px solid #ffccd5;
    border-radius: 20px;
    overflow: hidden;
    height: 32px;
}

.qty-btn {
    background: transparent;
    border: none;
    color: #ff6b8b;
    font-size: 16px;
    font-weight: bold;
    width: 32px;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.qty-btn:hover {
    background-color: #ffd1d7;
    color: #ffffff;
}

.qty-val {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    min-width: 24px;
    text-align: center;
}

/* Notifikasi Toast Interaktif */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: calc(100% - 40px);
    max-width: 400px;
    pointer-events: none; /* Agar tidak menghalangi klik di bawahnya jika kosong */
}

.toast-message {
    background-color: #333333;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideDown 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
    pointer-events: auto; /* Aktifkan klik hanya untuk elemen toast */
}

.toast-undo-btn {
    background: none;
    border: none;
    color: #ffb6c1;
    font-weight: 700;
    cursor: pointer;
    margin-left: 15px;
    text-transform: uppercase;
    font-size: 12px;
    transition: color 0.2s ease;
}

.toast-undo-btn:hover {
    color: #ff6b8b;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* --- FITUR ZOOM GAMBAR (LIGHTBOX) --- */
.image-modal-overlay {
    display: none; /* Disembunyikan secara default */
    position: fixed;
    z-index: 99999; /* Pastikan selalu berada di tumpukan paling atas */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Latar belakang hitam transparan */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-modal-overlay.show {
    display: flex;
    opacity: 1;
}

.image-modal-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efek membal (bouncy) */
    object-fit: contain;
}

.image-modal-overlay.show .image-modal-content {
    transform: scale(1);
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #ffffff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.image-modal-close:hover {
    color: #ff6b8b;
    background: rgba(255,255,255,0.9);
}

/* --- FITUR INFO BUBBLE KATEGORI --- */
.cat-info-overlay {
    display: none; position: fixed; z-index: 99998; left: 0; top: 0; width: 100%; height: 100%; 
    background-color: rgba(0,0,0,0.6); align-items: center; justify-content: center; 
    opacity: 0; transition: opacity 0.3s;
}
.cat-info-overlay.show { display: flex; opacity: 1; }
.cat-info-box {
    background: #ffffff; padding: 25px; border-radius: 20px; max-width: 340px; width: 90%; 
    text-align: center; transform: translateY(30px); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    box-shadow: 0 10px 40px rgba(255, 107, 139, 0.2);
}
.cat-info-overlay.show .cat-info-box { transform: translateY(0); }
.cat-info-title { font-size: 18px; color: #ff5274; margin-bottom: 12px; font-weight: 800; }
.cat-info-desc { font-size: 14px; color: #666; line-height: 1.6; margin-bottom: 25px; }
.cat-info-close { 
    background: #ffecf0; color: #ff6b8b; border: 1px solid #ffd1d7; padding: 10px 20px; 
    border-radius: 12px; font-weight: bold; cursor: pointer; width: 100%; transition: all 0.2s;
}
.cat-info-close:hover { background: #ff6b8b; color: white; }