:root {
    --bg: #f4f6f8;
    --card: #ffffff;
    --text: #333;
    --primary: #25D366;
    --shadow: rgba(0,0,0,0.08);
}

body.dark {
    --bg: #121212;
    --card: #1e1e1e;
    --text: #eaeaea;
    --primary: #25D366;
    --shadow: rgba(0,0,0,0.5);
}

body {
    background: var(--bg);
    color: var(--text);
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fcf8f8;
}

header {
    background-color: #ffffff;
    color: white;
    padding: 1rem;
    text-align: center;
}

nav a {
    color: rgb(117, 81, 81);
    margin: 0 1rem;
    text-decoration: none;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

#product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.product {
    background: rgb(145, 116, 116);
    border: 1px solid #ddd;
    padding: 1rem;
    text-align: center;
}

.product img {
    max-width: 100%;
    height: 150px;
}

button {
    background-color: #48b361;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

button:hover {
    background-color: #218838;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: white;
}
.status.waiting {
    color: white;
    background: orange;
    padding: 4px 8px;
    border-radius: 5px;
}
.status {
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: bold;
    color: white;
}

.status.waiting {
    background-color: orange;
}

.status.paid {
    background-color: green;
}
#wa-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #303b34;
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

#wa-chat:hover {
    background: #1ebe5d;
}
#wa-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 40px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    z-index: 9999;
    transition: transform 0.2s ease;
}

#wa-widget:hover {
    transform: scale(1.05);
}

#wa-widget img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid white;
}

.wa-text {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 1.2;
}

.wa-text span {
    font-size: 11px;
    opacity: 0.9;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
}

/* NAVBAR */
.navbar {
    background: var(--primary);
    color: white;
}

.product,
#keranjang,
#status {
    background: var(--card);
    box-shadow: 0 8px 20px var(--shadow);
}

.product p {
    color: var(--primary);
}

button {
    background: var(--primary);
    color: white;
}

#dark-toggle {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
}


/* CONTAINER */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 30px;
}

/* PRODUK */
#product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.product {
    background: rgb(125, 159, 165);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.product:hover {
    transform: translateY(-5px);
}

.product img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
}

.product h3 {
    margin: 12px 0 5px;
}

.product p {
    font-weight: bold;
    color: #f9fffb;
}

.product button {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border: none;
    background: #0a0a0a;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

.product button:hover {
    background: #dfb79c;
}

/* KERANJANG */
#keranjang {
    margin-top: 40px;
    background: rgb(26, 164, 182);
    padding: 20px;
    border-radius: 12px;
}

#cart-items div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

#cart-items button {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
}

/* BUTTON UMUM */
button {
    transition: 0.2s;
}

button:hover {
    opacity: 0.9;
}

/* STATUS PESANAN */
#status {
    margin-top: 30px;
    background: rgb(185, 14, 14);
    padding: 20px;
    border-radius: 12px;
}

.status.waiting {
    color: orange;
    font-weight: bold;
}

.status.paid {
    color: green;
    font-weight: bold;
}

/* LOGIN */
#login-section {
    margin-bottom: 30px;
}

#login-section input {
    padding: 10px;
    margin-right: 5px;
    border-radius: 6px;
    border: 1px solid #4b0707;
}

#login-section button {
    padding: 10px 14px;
    border-radius: 6px;
    border: none;
    background: #25D366;
    color: white;
    cursor: pointer;
}

/* WA WIDGET */
#wa-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #318eb3;
    color: rgb(189, 48, 48);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

#wa-widget img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
}
* {
    transition: background 0.3s, color 0.3s;
}
:root {
    --bg: #f4f6f8;
    --card: #ffffff;
    --text: #333;
    --primary: #25D366;
}

body.dark {
    --bg: #121212;
    --card: #1e1e1e;
    --text: #f1f1f1;
    --primary: #25D366;
}
.search-box {
    margin: 20px 0;
}

.search-box input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 15px;
    background: var(--card);
    color: var(--text);
}
.qty-control {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.qty-control button {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: none;
    background: var(--primary);
    color: rgb(255, 254, 254);
    cursor: pointer;
}
#toast {
    position: fixed;
    bottom: 90px;
    right: 20px;
    min-width: 250px;
    padding: 14px 18px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
    z-index: 9999;
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success {
    background: #25D366;
}

.toast-error {
    background: #e74c3c;
}

.toast-info {
    background: #3498db;
}
