:root {
    --teal: #1d9e75; --teal-dark: #0f6e56; --teal-bg: #e1f5ee;
    --amber-bg: #faeeda; --border: #e6e4dd; --muted: #8a8880; --bg: #f7f6f2;
}
* { box-sizing: border-box; }
body { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--bg); margin: 0; color: #1a1a1a; -webkit-font-smoothing: antialiased; }

.topbar { background: #fff; padding: 16px 28px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 10; }
.topbar .brand { font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.topbar .brand i { color: var(--teal); font-size: 22px; }
.topbar .cart-link { text-decoration: none; color: var(--teal-dark); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; background: var(--teal-bg); padding: 8px 14px; border-radius: 20px; transition: background 0.15s; }
.topbar .cart-link:hover { background: #cceee1; }

.hero { background: linear-gradient(135deg, var(--teal) 0%, #16805f 100%); padding: 36px 28px; color: #fff; text-align: center; }
.hero h1 { margin: 0 0 6px; font-size: 24px; }
.hero p { margin: 0; opacity: 0.9; font-size: 14px; }

.container { max-width: 960px; margin: 0 auto; padding: 24px; }
.search-box { position: relative; margin-bottom: 20px; }
.search-box input { width: 100%; padding: 12px 16px 12px 40px; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; background: #fff; }
.search-box i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 4px 16px rgba(0,0,0,0.04); transition: transform 0.18s, box-shadow 0.18s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.card .thumb { height: 100px; background: linear-gradient(135deg, var(--teal-bg), #f0faf5); display: flex; align-items: center; justify-content: center; color: var(--teal-dark); font-size: 32px; }
.card .body { padding: 14px; }
.card .kategori { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); font-weight: 600; }
.card p.nama { margin: 4px 0 4px; font-size: 14.5px; font-weight: 700; }
.card p.harga { color: var(--teal-dark); font-weight: 600; font-size: 13.5px; margin: 0 0 12px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; text-align: center; padding: 10px; background: var(--teal); color: #fff; border: none; border-radius: 10px; cursor: pointer; font-size: 13.5px; font-weight: 600; text-decoration: none; transition: filter 0.15s; }
.btn:hover { filter: brightness(0.93); }
.btn-secondary { background: #fff; color: #555; border: 1px solid var(--border); }

.alert { padding: 12px 16px; background: var(--teal-bg); color: var(--teal-dark); border-radius: 10px; margin-bottom: 18px; font-size: 13.5px; }

/* Keranjang & Login */
.narrow { max-width: 420px; margin: 32px auto; padding: 0 24px; }
.panel { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 4px 20px rgba(0,0,0,0.05); margin-bottom: 16px; }
.item-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.item-row:last-child { border-bottom: none; }
.item-row input[type=number] { width: 52px; padding: 6px; border: 1px solid var(--border); border-radius: 6px; text-align: center; margin: 0; }
.total-row { display: flex; justify-content: space-between; font-weight: 700; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 16px; }
label { display: block; font-size: 12.5px; margin-bottom: 5px; color: #555; font-weight: 500; }
input, select { width: 100%; padding: 10px 12px; margin-bottom: 15px; border: 1px solid var(--border); border-radius: 8px; box-sizing: border-box; font-size: 13.5px; font-family: inherit; transition: border-color 0.15s, box-shadow 0.15s; }
input:focus, select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(29,158,117,0.12); }
a.back-link { display: block; text-align: center; margin-top: 14px; color: var(--muted); font-size: 13px; text-decoration: none; }
a.back-link:hover { color: var(--teal-dark); }

/* Metode pengambilan cards */
.metode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.metode-card { text-align: center; padding: 14px 8px; border-radius: 12px; border: 1.5px solid var(--border); cursor: pointer; transition: all 0.15s; margin: 0; }
.metode-card i { font-size: 22px; }
.metode-card .label { font-size: 12.5px; margin-top: 4px; font-weight: 500; }
.metode-card.active { background: var(--teal); border-color: var(--teal); color: #fff; }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--teal-bg) 0%, var(--bg) 60%); }
.login-card { background: #fff; padding: 36px 32px; border-radius: 20px; box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 20px 50px rgba(0,0,0,0.08); width: 340px; }
.login-card .icon-wrap { width: 56px; height: 56px; background: var(--teal-bg); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.login-card .icon-wrap i { font-size: 26px; color: var(--teal-dark); }
.login-card h1 { font-size: 18px; text-align: center; margin: 0 0 2px; }
.login-card p.sub { text-align: center; color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.login-card button { width: 100%; padding: 12px; background: var(--teal); color: #fff; border: none; border-radius: 10px; cursor: pointer; font-size: 14px; font-weight: 600; transition: filter 0.15s; }
.login-card button:hover { filter: brightness(0.93); }
.error-box { background: #fcebeb; color: #a32d2d; font-size: 12.5px; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }