/* lovaruna.tasty — gaya tampilan */
:root {
  --green: #4e7a22; --green-d: #3b5e18; --green-l: #e8f0dc;
  --pink: #f6dfe7; --pink-d: #ecc5d3; --pink-l: #fcf2f5;
  --cream: #fffaf6; --ink: #2d2a26; --muted: #7a716b; --line: #eadfd8;
  --red: #b3261e; --red-l: #fbe9e7; --amber: #9a5b00; --amber-l: #fff3dc;
  --blue: #1f5fa8; --blue-l: #e6f0fb; --teal: #127a6a; --teal-l: #e0f4f0;
  --purple: #6b3fa0; --purple-l: #f0e8fa; --gray-l: #f1eeeb;
  --radius: 14px; --shadow: 0 1px 2px rgba(60,40,30,.06), 0 6px 20px rgba(60,40,30,.06);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Fraunces', Georgia, serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cream); font-size: 15px; line-height: 1.55; }
img { max-width: 100%; display: block; }
a { color: var(--green); }
a:hover { color: var(--green-d); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.neg, .warn-text { color: var(--red); }
.ok-text { color: var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.pad-y { padding-top: 2rem; padding-bottom: 3rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 600; color: var(--green); margin-bottom: .3rem; }
code, .code { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
pre.code { background: var(--gray-l); padding: 1rem; border-radius: 8px; overflow: auto; }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem 1rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: var(--green); color: var(--green-d); }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-d); color: #fff; }
.btn-ghost { background: transparent; }
.btn-lg { padding: .8rem 1.3rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger-ghost { color: var(--red); border-color: #f0c9c5; background: #fff; }
.btn-wa { background: #25d366; border-color: #25d366; color: #fff; }
.btn-wa:hover { background: #1eb457; color: #fff; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; padding: .3rem .5rem; border-radius: 6px; }
.icon-btn:hover { background: var(--red-l); color: var(--red); }
.linkbtn { border: 0; background: none; color: var(--green); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }
form.inline { display: inline; }

/* Form */
label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 600; color: #4a433d; }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 9px; background: #fff; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(78,122,34,.25); border-color: var(--green); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--green); }
input[type=file] { padding: .45rem; }
label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 500; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; align-content: start; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.form-grid > h2, .form-grid > h3 { margin: .3rem 0 0; }
.span2 { grid-column: 1 / -1; }
.align-end { align-self: end; }
.stack { display: flex; flex-direction: column; gap: .8rem; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: .8rem; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
legend { font-weight: 600; font-size: .88rem; padding: 0 .3rem; }
.input-xs { width: 70px; text-align: right; }
.input-sm { width: 100px; text-align: right; }
.input-md { width: 140px; text-align: right; }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin-bottom: 1rem; }
.toolbar label { flex-direction: column; }
.toolbar input, .toolbar select { width: auto; }
.toolbar input[type=search] { min-width: 220px; }
details.inline-form { margin-top: .8rem; }
details.inline-form > summary { cursor: pointer; color: var(--green); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
details.danger > summary { color: var(--red); }

/* Kartu, alert, badge */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.card-head h2 { margin: 0; }
.alert { padding: .8rem 1rem; border-radius: 10px; margin: 0 0 1rem; font-size: .92rem; border: 1px solid transparent; }
.alert-success { background: var(--green-l); color: var(--green-d); border-color: #cfe0b8; }
.alert-error { background: var(--red-l); color: var(--red); border-color: #f3c9c4; }
.alert-warn { background: var(--amber-l); color: var(--amber); border-color: #f4dcae; }
.alert-info { background: var(--blue-l); color: var(--blue); border-color: #c9ddf3; }
.shop-main > .wrap:first-child .alert { margin-top: 1rem; }
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; white-space: nowrap; vertical-align: middle; }
.badge-amber { background: var(--amber-l); color: var(--amber); }
.badge-blue { background: var(--blue-l); color: var(--blue); }
.badge-teal { background: var(--teal-l); color: var(--teal); }
.badge-purple { background: var(--purple-l); color: var(--purple); }
.badge-green { background: var(--green-l); color: var(--green-d); }
.badge-gray { background: var(--gray-l); color: #5d554f; }
.badge-red { background: var(--red-l); color: var(--red); }
.note { background: var(--pink-l); border-left: 3px solid var(--pink-d); padding: .6rem .8rem; border-radius: 6px; }
.highlight { background: var(--amber-l); padding: .3rem .5rem; border-radius: 6px; }
.thumb { max-width: 120px; border-radius: 8px; border: 1px solid var(--line); }
.thumb.wide { max-width: 200px; background: var(--pink-l); padding: .4rem; }

/* Tabel */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: .55rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: .55rem .6rem; border-bottom: 1px solid #f3ece7; vertical-align: top; }
.table .num { text-align: right; white-space: nowrap; }
.table tfoot td { border-bottom: 0; }
.table tr.strong td, .table tfoot .strong td { font-weight: 700; border-top: 1px solid var(--line); }
.table.compact td, .table.compact th { padding: .35rem .4rem; }
.table tr.inactive td { opacity: .5; }
.table tr.row-warn td { background: #fff7ea; }
.table tr.group-row td { background: var(--pink-l); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: #8a5a6b; }
.journal-table .journal-head td { background: #faf6f3; font-size: .88rem; }
.journal-table td.indent { padding-left: 2rem; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 1rem; font-size: .92rem; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }
ul.plain { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.plain li { padding: .3rem 0; border-bottom: 1px dashed #f0e6e0; }

/* Laporan */
.report-card { max-width: 900px; }
.report-head { text-align: center; margin-bottom: 1rem; }
.report-head h2 { font-family: var(--serif); font-size: 1.4rem; margin: .1rem 0; }
.report-head p { margin: 0; }
table.report { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.report th { text-align: left; border-bottom: 2px solid var(--green); padding: .5rem .6rem; font-size: .8rem; }
table.report th.num, table.report td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.report td { padding: .38rem .6rem; border-bottom: 1px solid #f5efea; }
table.report tr.r-section td { font-weight: 800; font-size: .95rem; padding-top: 1rem; color: var(--green-d); border-bottom: 2px solid var(--green-l); }
table.report tr.r-h td { font-weight: 700; padding-top: .8rem; }
table.report tr.r-sub td { font-weight: 600; border-top: 1px solid var(--line); }
table.report tr.r-total td { font-weight: 700; background: var(--pink-l); }
table.report tr.r-grand td { font-weight: 800; background: var(--green-l); border-top: 2px solid var(--green); }
table.report tr.r-muted td { color: var(--muted); font-style: italic; }
table.report td.neg { color: var(--red); }
.report-note { margin-top: .8rem; color: var(--green-d); font-size: .88rem; }
.report-note.warn { color: var(--red); }
.quick-periods { display: flex; gap: .8rem; margin: -.4rem 0 1rem; font-size: .85rem; }

/* ---------- Toko ---------- */
.shop-header { background: rgba(255,250,246,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.shop-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand img { height: 46px; width: auto; }
.shop-nav { display: flex; gap: .3rem; align-items: center; }
.shop-nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; padding: .5rem .7rem; border-radius: 9px; display: inline-flex; align-items: center; gap: .35rem; }
.shop-nav a:hover, .shop-nav a.on { background: var(--pink); color: var(--green-d); }
.cart-count { background: var(--green); color: #fff; border-radius: 999px; font-size: .72rem; min-width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; padding: 0 .35rem; }
.hero { background: linear-gradient(160deg, var(--pink) 0%, var(--pink-l) 60%, var(--cream) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; padding-top: 3rem; padding-bottom: 3rem; }
.hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); color: #34331f; }
.lead { font-size: 1.08rem; color: #5a524c; max-width: 34em; }
.hero-cta { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-art img { max-width: 440px; width: 100%; margin: 0 auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: -1.5rem; margin-bottom: 2rem; position: relative; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; box-shadow: var(--shadow); }
.step b { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--green); color: #fff; margin-bottom: .5rem; }
.step h3 { margin-bottom: .2rem; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }
.section-title { font-family: var(--serif); font-size: 1.5rem; margin: 2rem 0 1rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; }
.product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.product-img { aspect-ratio: 4 / 3; background: var(--pink-l); display: block; overflow: hidden; }
.product-img > img { width: 100%; height: 100%; object-fit: cover; }
.img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 40%, #fff 0%, var(--pink) 75%); }
.img-placeholder img { width: 38%; opacity: .75; }
.img-placeholder.big { aspect-ratio: 1; border-radius: var(--radius); }
.product-body { padding: 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.product-body h3 { font-size: 1.05rem; margin: 0; }
.product-body h3 a { color: var(--ink); text-decoration: none; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 0; }
.product-meta { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; margin-top: auto; }
.price { font-weight: 800; color: var(--green-d); font-size: 1.1rem; }
.big .price, p.big { font-size: 1.5rem; }
.add-form { display: flex; gap: .5rem; margin-top: .6rem; align-items: center; }
.add-form .btn { flex: 1; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty button { border: 0; background: var(--pink-l); width: 34px; font-size: 1.1rem; cursor: pointer; color: var(--green-d); }
.qty input { width: 46px; border: 0; border-radius: 0; text-align: center; padding: .5rem .2rem; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.product-detail-img img { border-radius: var(--radius); width: 100%; }
.cart-list { display: flex; flex-direction: column; }
.cart-row { display: grid; grid-template-columns: 56px 1fr auto auto auto; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid #f3ece7; }
.cart-thumb img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--pink-l); }
.cart-info { display: flex; flex-direction: column; }
.cart-sub { font-weight: 700; min-width: 100px; text-align: right; }
.cart-total { display: flex; justify-content: space-between; font-size: 1.15rem; padding: 1rem 0; }
.actions-row { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.checkout-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1rem; align-items: start; }
.summary { position: sticky; top: 90px; }
.sum-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .92rem; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .7rem; font-weight: 800; font-size: 1.05rem; }
.radio-cards { flex-direction: row; flex-wrap: wrap; border: 0; padding: 0; }
.radio-cards legend { padding: 0; margin-bottom: .4rem; }
.radio-cards label { flex: 1 1 200px; flex-direction: row; align-items: flex-start; gap: .6rem; border: 1px solid var(--line); border-radius: 10px; padding: .8rem; cursor: pointer; font-weight: 500; }
.radio-cards label:has(input:checked) { border-color: var(--green); background: var(--green-l); }
.radio-cards span { display: flex; flex-direction: column; }
.radio-cards small { color: var(--muted); font-weight: 400; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.order-code { font-family: ui-monospace, Menlo, monospace; font-size: 1.6rem; letter-spacing: .03em; margin: 0; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 0; margin: 0 0 1.4rem; counter-reset: s; }
.timeline li { text-align: center; font-size: .78rem; color: var(--muted); position: relative; padding-top: 26px; }
.timeline li span { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--line); z-index: 1; }
.timeline li::before { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.timeline li:first-child::before { display: none; }
.timeline li.done { color: var(--green-d); font-weight: 600; }
.timeline li.done span { background: var(--green); border-color: var(--green); }
.timeline li.done::before { background: var(--green); }
.timeline li.current span { box-shadow: 0 0 0 4px var(--green-l); }
.pay-card h2 { margin-bottom: .8rem; }
.pay-amount { display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pay-amount div { display: flex; flex-direction: column; }
.pay-amount b { font-size: 1.5rem; color: var(--green-d); }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.pay-method { background: var(--pink-l); border-radius: 12px; padding: 1rem; }
.bank-text { font-family: ui-monospace, Menlo, monospace; font-size: .95rem; margin: 0; }
.qris-img { max-width: 220px; border-radius: 10px; background: #fff; padding: .4rem; }
.upload-form { border-top: 1px solid var(--line); padding-top: 1rem; }
.shop-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; }
.footer-logo { max-width: 200px; margin-bottom: .5rem; }
.shop-footer h4 { margin: 0 0 .5rem; font-size: .9rem; }
.shop-footer p { font-size: .9rem; margin-bottom: .35rem; }
.copyright { color: var(--muted); font-size: .8rem; margin-top: 1.5rem; }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, var(--pink), var(--cream)); padding: 16px; }
.login-box { width: 100%; max-width: 400px; }
.login-logo { max-width: 240px; margin: 0 auto 1rem; }
.login-box h1 { font-size: 1.3rem; text-align: center; }

/* ---------- Admin ---------- */
.admin { background: #faf7f4; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 1rem .8rem; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-brand { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; margin: 0 .4rem 1rem; }
.sidebar-brand img { max-width: 170px; }
.sidebar-brand span { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.sidebar nav { display: flex; flex-direction: column; gap: 1px; flex: 1; }
.nav-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: .9rem .6rem .3rem; }
.sidebar nav a { text-decoration: none; color: #3d3833; padding: .45rem .6rem; border-radius: 8px; font-size: .9rem; display: flex; justify-content: space-between; align-items: center; }
.sidebar nav a:hover { background: var(--pink-l); }
.sidebar nav a.on { background: var(--green-l); color: var(--green-d); font-weight: 700; }
.pill { background: var(--red); color: #fff; font-size: .7rem; border-radius: 999px; padding: 0 .45rem; }
.sidebar-foot { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: 1rem; display: flex; flex-direction: column; gap: .3rem; font-size: .85rem; padding-left: .6rem; }
.admin-main { min-width: 0; }
.admin-top { display: flex; align-items: center; gap: .8rem; padding: 1rem 1.5rem; border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.admin-top h1 { font-family: var(--font); font-size: 1.2rem; margin: 0; font-weight: 700; }
.menu-btn { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 1.1rem; padding: .3rem .6rem; cursor: pointer; }
.admin-content { padding: 1.5rem; max-width: 1400px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; text-decoration: none; color: var(--ink); }
.kpi span { font-size: .78rem; color: var(--muted); }
.kpi b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
a.kpi:hover { border-color: var(--green); }
.kpi-alert { border-color: #f3c9c4; background: var(--red-l); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.grid-2.wide-left { grid-template-columns: 1.6fr 1fr; }
.grid-2.wide-right { grid-template-columns: minmax(300px, 1fr) 2fr; }
.narrow-card { max-width: 640px; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a { text-decoration: none; padding: .4rem .8rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: #4a433d; font-size: .85rem; font-weight: 600; }
.tabs a.on { background: var(--green); border-color: var(--green); color: #fff; }
.tabs small { opacity: .75; }
.payment { border: 1px solid var(--line); border-radius: 12px; padding: .9rem; margin-bottom: .8rem; display: grid; grid-template-columns: 1fr auto; gap: .6rem; }
.payment.pending { border-color: #c9ddf3; background: #f8fbff; }
.payment.rejected { opacity: .6; }
.payment form { grid-column: 1 / -1; margin: 0; }
.proof-thumb img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
ul.log { list-style: none; padding: 0; margin: 0; font-size: .88rem; max-height: 360px; overflow: auto; }
ul.log li { padding: .45rem 0; border-bottom: 1px dashed #efe5de; }
.bom-table select { min-width: 260px; }
.purchase-table select[data-material] { min-width: 240px; }

/* Responsif */
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.15); }
  .sidebar-open .sidebar { transform: none; }
  .menu-btn { display: inline-block; }
  .admin-content { padding: 1rem 16px; }
  .admin-top { padding: .8rem 16px; }
  .grid-2, .grid-2.wide-left, .grid-2.wide-right, .checkout-grid, .product-detail, .hero-inner, .footer-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 280px; }
  .hero-inner { padding-top: 1.5rem; gap: 1rem; }
  .steps { grid-template-columns: 1fr; margin-top: 1rem; }
  .summary { position: static; }
}
@media (max-width: 600px) {
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .shop-nav a span { display: none; }
  .shop-nav a { padding: .45rem .5rem; font-size: .85rem; }
  .brand img { height: 38px; }
  .cart-row { grid-template-columns: 48px 1fr auto; }
  .cart-row .qty { grid-column: 2; }
  .cart-sub { grid-column: 3; grid-row: 1; }
  .cart-row .icon-btn { grid-column: 3; grid-row: 2; justify-self: end; }
  .timeline li { font-size: .68rem; }
  .card { padding: 1rem; }
  .toolbar input, .toolbar select { width: 100%; }
  .toolbar label { flex: 1 1 100%; }
}
@media print {
  .sidebar, .admin-top, .no-print, .toolbar, .quick-periods { display: none !important; }
  .admin-shell { display: block; }
  .card { box-shadow: none; border: 0; }
  body, .admin { background: #fff; }
}

/* ---------- Navigasi bawah (ponsel / aplikasi) ---------- */
.bottom-nav, .quick-sheet { display: none; }
@media (max-width: 900px) {
  .admin-content { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 18px rgba(60,40,30,.06); }
  .bottom-nav a, .bottom-nav button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; font-size: .7rem; font-weight: 600; color: #6b625c; text-decoration: none; background: none; border: 0; padding: 4px 0; cursor: pointer; }
  .bottom-nav .on { color: var(--green-d); }
  .bottom-nav .pill { position: absolute; top: 0; left: 55%; }
  .bottom-nav .bn-plus { align-self: center; justify-self: center; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: #fff; margin-top: -22px; box-shadow: 0 6px 16px rgba(78,122,34,.35); justify-content: center; }
  .bottom-nav .bn-plus svg { width: 26px; height: 26px; }
  .quick-sheet:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 39; background: rgba(40,30,25,.35); }
  .quick-sheet-inner { position: absolute; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); background: #fff; border-radius: 16px; padding: .6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
  .quick-sheet-inner a { padding: .85rem .8rem; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
  .quick-sheet-inner a:active, .quick-sheet-inner a:hover { background: var(--pink-l); }
  .sidebar-foot { padding-bottom: 90px; }
  /* sentuhan lebih besar untuk jari */
  .admin .btn { min-height: 44px; }
  .admin input, .admin select, .admin textarea { font-size: 16px; }
}
.in-app .sidebar-foot a[target=_blank] { display: none; }
@media print { .bottom-nav, .quick-sheet { display: none !important; } }

/* ---------- Varian & add-on ---------- */
.options-form { flex-direction: column; align-items: stretch; gap: .8rem; }
.opt-group { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; gap: .2rem; }
.opt-group legend { font-weight: 700; font-size: .95rem; }
.opt { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; font-weight: 500; padding: .45rem .3rem; border-radius: 8px; cursor: pointer; }
.opt:hover { background: var(--pink-l); }
.opt-price { color: var(--green-d); font-weight: 600; font-size: .9rem; }
.opt-total { margin: 0; font-size: 1.05rem; }
.add-row { display: flex; gap: .5rem; align-items: center; }
.add-row .btn { flex: 1; }
.add-form-link { margin-top: .6rem; }
.cart-info .small { color: #6b625c; }
.opt-admin-group { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; }
.opt-admin-group h3 { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.line-item { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .8rem; background: #fffdfb; }
.line-item .toolbar { margin-bottom: .4rem; }
.line-sub { font-weight: 700; min-width: 100px; text-align: right; align-self: center; margin-left: auto; }
.line-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; }
.toolbar .input-xs { width: 70px; } .toolbar .input-sm { width: 100px; } .toolbar .input-md { width: 140px; }
.toolbar label.check { flex-direction: row; align-self: center; padding-top: 1.2rem; }
@media (max-width: 600px) { .kpis { grid-template-columns: 1fr 1fr; gap: .6rem; } .kpi { padding: .7rem .8rem; } .kpi b { font-size: 1.05rem; } }
