/* Import Font Google */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
}

body { 
    background: #fdf5e6; 
    overflow-x: hidden; 
}

/* Sistem Layar (Screen System) */
.screen { 
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%; 
    height: 100vh; 
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
    transform: translateX(100%); 
    background: #fdf5e6;
    overflow-y: auto; 
}

.screen.active { 
    transform: translateX(0); 
    position: relative; 
}

/* Welcome Screen */
#welcome-screen {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://images.unsplash.com/photo-1495474472287-4d71bcdd2085?w=1200');
    background-size: cover; 
    background-position: center;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white;
}

.hero-content h1 { font-size: 3rem; margin-bottom: 10px; }
.hero-content p { margin-bottom: 30px; opacity: 0.9; }

.btn-hero { 
    background: #c67c4e; 
    color: white; 
    border: none; 
    padding: 15px 40px; 
    border-radius: 12px; 
    font-weight: bold; 
    cursor: pointer; 
    transition: 0.3s; 
}
.btn-hero:hover { background: #a45d35; transform: translateY(-3px); }

/* Navbar */
.navbar { 
    display: flex; 
    justify-content: space-between; 
    padding: 20px 8%; 
    background: white; 
    align-items: center; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    position: sticky;
    top: 0;
    z-index: 50;
}
.logo { font-size: 20px; font-weight: bold; color: #333; }
.logo span { color: #c67c4e; }

.nav-links span { margin-right: 20px; cursor: pointer; color: #888; }
.nav-links span.active { color: #c67c4e; font-weight: bold; }

.cart-btn { 
    background: #c67c4e; 
    color: white; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 10px; 
    cursor: pointer; 
    transition: 0.3s; 
}

/* Main Content Area */
.main-content { 
    padding: 40px 8%; 
    min-height: calc(100vh - 80px); 
}
.welcome-text h2 { font-size: 24px; color: #333; }
.welcome-text p { color: #888; font-size: 14px; margin-top: 4px; }

.search-box { 
    width: 100%; 
    max-width: 450px; 
    padding: 14px; 
    border-radius: 12px; 
    border: 1px solid #ddd; 
    margin: 20px 0; 
    outline: none; 
}

.tabs { display: flex; gap: 12px; margin-bottom: 30px; flex-wrap: wrap; }
.tab { 
    padding: 8px 20px; 
    border-radius: 20px; 
    border: none; 
    background: #eee; 
    cursor: pointer; 
    transition: 0.2s; 
    font-size: 13px; 
}
.tab.active { background: #c67c4e; color: white; }

/* Menu Card */
.menu-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); 
    gap: 20px; 
}
.coffee-card { 
    background: white; 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}
.card-img { 
    height: 180px; 
    background-size: cover; 
    background-position: center;
    position: relative; 
}

.plus-btn { 
    position: absolute; 
    bottom: 12px; 
    right: 12px; 
    width: 40px; 
    height: 40px; 
    border-radius: 12px; 
    background: #c67c4e; 
    color: white; 
    border: none; 
    font-size: 22px; 
    cursor: pointer; 
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.plus-btn:active { transform: scale(0.8) rotate(15deg); }
.plus-btn.clicked { transform: scale(1.3); background: #2ecc71; }

.card-info { padding: 15px; }
.card-info h4 { font-size: 16px; color: #333; }
.price { color: #c67c4e; font-weight: bold; font-size: 18px; margin-top: 5px; }

/* Sidebar (Cart) */
.sidebar { 
    position: fixed; 
    top: 0; 
    right: -400px; 
    width: 350px; 
    height: 100%; 
    background: white; 
    transition: 0.4s ease; 
    z-index: 1000; 
    display: flex; 
    flex-direction: column; 
    box-shadow: -5px 0 20px rgba(0,0,0,0.1); 
}
.sidebar.open { right: 0; }

.sidebar-header { padding: 25px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.close-btn { background: none; border: none; font-size: 20px; cursor: pointer; }

.sidebar-body { flex: 1; padding: 20px; overflow-y: auto; }
.sidebar-footer { padding: 20px; background: #fdf5e6; border-top: 1px solid #eee; }

.total { display: flex; justify-content: space-between; font-weight: bold; font-size: 20px; margin-bottom: 15px; }
.footer-buttons { display: flex; gap: 10px; }

.checkout-btn { 
    flex: 2; 
    background: #c67c4e; 
    color: white; 
    border: none; 
    padding: 15px; 
    border-radius: 12px; 
    font-weight: bold; 
    cursor: pointer; 
}
.cancel-btn { 
    flex: 1; 
    background: #ff4757; 
    color: white; 
    border: none; 
    border-radius: 12px; 
    cursor: pointer; 
    font-size: 12px; 
}

/* Order Form / Containers */
.order-container {
    max-width: 500px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: bold; margin-bottom: 8px; color: #333; font-size: 14px; }
.form-group input { 
    width: 100%; padding: 12px; border: 1px solid #ddd; 
    border-radius: 12px; outline: none; font-size: 15px;
    background: #fff;
    transition: 0.3s;
}
.form-group input:focus { border-color: #c67c4e; box-shadow: 0 0 5px rgba(198, 124, 78, 0.2); }

.summary-box {
    background: #fdf5e6;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
}
.summary-item { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 8px; 
    font-size: 14px; 
}

/* Payment Options */
.payment-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px; 
    margin-top: 10px; 
}
.pay-option { 
    border: 2px solid #eee; 
    padding: 12px 5px; 
    border-radius: 12px; 
    text-align: center; 
    cursor: pointer; 
    font-size: 12px; 
    transition: 0.3s;
}
.pay-option input { display: none; }
.pay-option:has(input:checked) { 
    border-color: #c67c4e; 
    background: #fdf5e6; 
    color: #c67c4e; 
    font-weight: bold; 
}

/* Status Icons & Badge */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
#status-icon { 
    display: inline-block;
    animation: pulse 2s infinite; 
    font-size: 50px; /* Tambahan biar ikon emoji kelihatan gede */
    margin-bottom: 15px;
}

#status-badge {
    transition: background 0.5s ease; /* Biar transisi warna halus */
}

/* Scrollbar Style */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c67c4e; border-radius: 10px; }

/* Tambahan Responsif */
@media (max-width: 480px) {
    .payment-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; }
    .sidebar { width: 100%; right: -100%; }
}