/* Fleurkpop.id — sistem desain mengikuti xawaigo, palet dari logo (pink, blush, biru muda) */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700&family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --ink: #4A2838;        /* teks utama (plum gelap, kontras tinggi) */
  --muted: #85596C;      /* teks sekunder */
  --rose: #B8466F;       /* aksi utama: lolos kontras AA dengan teks putih */
  --rose-hover: #9C3A5E;
  --pink: #F08FB0;       /* aksen logo */
  --blush: #FADCE6;
  --petal: #FFF5F8;      /* background halaman */
  --sky: #3E7CC1;        /* biru "Welcome to" */
  --sky-soft: #E4F0FA;
  --white: #fff;
  --line: #F0D5DF;
  --soft: #FBE9EF;
  --r: 16px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--petal);
  color: var(--ink);
  font: 15px/1.5 'Nunito', Arial, sans-serif;
}
button, input, select, textarea { font: inherit; }
button, a { color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ---------- header ---------- */
.top { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 1120px; margin: auto; padding: 12px 28px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand img { width: 50px; height: 50px; object-fit: cover; border-radius: 50%; border: 2px solid var(--pink); }
.brand-name { font: 700 24px/1 'Baloo 2', sans-serif; color: var(--rose); }
.brand-sub { font-size: 12px; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 4px; }
.top-link { font-weight: 800; padding: 10px 12px; border-radius: 10px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.top-link:hover { background: var(--soft); text-decoration: none; }
.top-link[aria-current] { background: var(--soft); color: var(--rose); }
.badge { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--rose); color: var(--white); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- layout ---------- */
.shell { max-width: 1120px; margin: 0 auto; padding: 0 28px; }
.main { padding: 36px 0 72px; }
.page-head { margin: 0 0 22px; }
.page-head h1 { font: 700 clamp(28px, 4vw, 40px)/1.1 'Baloo 2', sans-serif; margin: 0 0 6px; }
.page-head p { margin: 0; color: var(--muted); }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.section-title { font: 700 22px/1.2 'Baloo 2', sans-serif; margin: 0 0 14px; }
.subtle { color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); }
.stack { display: grid; gap: 20px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); gap: 22px; align-items: start; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

/* ---------- hero & katalog ---------- */
.hero { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); margin-bottom: 26px; background: var(--blush); }
.hero img { width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.toolbar { display: flex; gap: 10px; margin-bottom: 18px; }
.toolbar input { flex: 1; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px #b8466f1f; text-decoration: none; }
.card-img { aspect-ratio: 1; background: var(--soft); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 16px; display: grid; gap: 4px; }
.card-title { font-weight: 800; line-height: 1.3; }
.price { font-weight: 800; color: var(--rose); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }

/* ---------- produk ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 26px; align-items: start; }
.product-img { border-radius: var(--r); overflow: hidden; background: var(--soft); aspect-ratio: 1; border: 1px solid var(--line); }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product h1 { font: 700 30px/1.15 'Baloo 2', sans-serif; margin: 0 0 8px; }
.desc { white-space: pre-line; color: var(--muted); margin: 0 0 18px; }
.options { display: grid; gap: 8px; margin: 0 0 18px; border: 0; padding: 0; }
.options legend { font-weight: 800; margin-bottom: 8px; }
.option { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); cursor: pointer; }
.option input { width: auto; min-height: 0; margin: 0 10px 0 0; accent-color: var(--rose); }
.option:has(input:checked) { border-color: var(--rose); background: var(--soft); }
.option.disabled { opacity: .55; cursor: not-allowed; }
.option-label { display: flex; align-items: center; font-weight: 700; }
.option-meta { font-size: 12px; color: var(--muted); text-align: right; }
.qty { justify-self: start; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 44px; height: 44px; border: 0; background: var(--soft); font-weight: 800; font-size: 18px; }
.qty input { width: 56px; min-height: 44px; border: 0; border-radius: 0; text-align: center; padding: 0; }

/* ---------- form ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 800; }
input, select, textarea { width: 100%; min-height: 48px; border: 1px solid #D9A9BC; border-radius: 10px; padding: 11px 13px; background: var(--white); color: var(--ink); }
textarea { min-height: 96px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9C7486; opacity: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; }

/* ---------- tombol ---------- */
.btn { min-height: 48px; border: 0; border-radius: 12px; padding: 11px 20px; font-weight: 800; background: var(--rose); color: var(--white); display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { background: var(--rose-hover); text-decoration: none; }
.btn.light { background: var(--soft); color: var(--ink); border: 1px solid var(--line); }
.btn.light:hover { background: var(--blush); }
.btn.sky { background: var(--sky); }
.btn.danger { background: #FBE0E3; color: #8A2633; border: 1px solid #E3A3AC; }
.btn.full { width: 100%; }
.btn.sm { min-height: 38px; padding: 6px 12px; font-size: 14px; border-radius: 10px; }
.btn-row { display: flex; gap: 9px; flex-wrap: wrap; }

/* ---------- ringkasan / item ---------- */
.item-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--soft); }
.item-row:last-child, .item-row:has(+ .summary) { border-bottom: 0; }
.item-name { font-weight: 800; }
.money { font-weight: 800; white-space: nowrap; }
.summary { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.money-row { display: flex; justify-content: space-between; gap: 10px; }
.money-row.total { font-size: 18px; font-weight: 800; color: var(--rose); padding-top: 8px; border-top: 1px dashed var(--line); }
.ship-option { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.ship-option input { width: auto; min-height: 0; accent-color: var(--rose); margin-right: 10px; }
.ship-option:has(input:checked) { border-color: var(--rose); background: var(--soft); }

/* ---------- status / timeline ---------- */
.status { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; background: var(--sky-soft); color: #24507F; font-weight: 800; font-size: 12px; }
.status.wait { background: #FFF1D6; color: #7A5000; }
.status.ok { background: #DFF3E6; color: #1E6B3A; }
.status.off { background: #EEE6EA; color: #6B5560; }
.status.rose { background: var(--soft); color: var(--rose); }
.order-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.order-id { font-weight: 800; font-size: 13px; color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; margin-left: 8px; padding: 0 0 18px 24px; border-left: 2px solid var(--blush); }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.step-mark { position: absolute; left: -8px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 2px solid var(--pink); }
.timeline li.done .step-mark { background: var(--rose); border-color: var(--rose); }
.timeline li.current .step-mark { background: var(--pink); border-color: var(--rose); box-shadow: 0 0 0 4px var(--soft); }
.step-title { font-weight: 800; }
.step-meta { font-size: 12px; color: var(--muted); }

/* ---------- pembayaran ---------- */
.bank-card { background: var(--sky-soft); padding: 16px 18px; border-radius: 12px; margin-bottom: 14px; }
.bank-card p { margin: 4px 0 0; font-weight: 800; }
.copy { font-weight: 800; color: var(--sky); background: none; border: 0; padding: 0 0 0 6px; text-decoration: underline; }
.drop { border: 2px dashed #D9A9BC; border-radius: 12px; background: var(--petal); text-align: center; padding: 22px 16px; margin: 6px 0 14px; }
.drop input { max-width: 300px; margin: 12px auto 0; }
.preview { max-height: 260px; margin: 0 auto 12px; border-radius: 10px; }
.receipt { width: 100%; max-height: 420px; object-fit: contain; background: var(--petal); border-radius: 10px; margin: 10px 0; }

/* ---------- pesan ---------- */
.feedback { padding: 12px 14px; background: var(--sky-soft); border-radius: 10px; font-weight: 700; margin: 12px 0 0; }
.feedback:empty { display: none; }
.feedback.error { background: #FCE4EA; color: #8A2633; }
.feedback.ok { background: #DFF3E6; color: #1E6B3A; }

/* ---------- login & admin ---------- */
.login-wrap { max-width: 450px; margin: 40px auto; padding: 0 18px; }
.login-brand { text-align: center; margin-bottom: 20px; }
.login-brand img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 3px solid var(--pink); margin: 0 auto; }
.login-brand h1 { font: 700 28px 'Baloo 2', sans-serif; margin: 10px 0 0; }
.admin-shell { max-width: 1320px; margin: 0 auto; padding: 28px 28px 70px; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.admin-head h1 { font: 700 34px/1.1 'Baloo 2', sans-serif; margin: 0 0 6px; }
.admin-head p { margin: 0; color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.filters input { flex: 1 1 220px; }
.filters select { flex: 0 1 230px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 820px; text-align: left; }
th, td { padding: 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 800; background: var(--petal); }
tbody tr:last-child td { border-bottom: 0; }
.buyer { font-weight: 800; }
.cell-note { font-size: 12px; color: var(--muted); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.variant-table input { min-height: 42px; padding: 8px 10px; }
.variant-table input[type=checkbox] { width: 20px; min-height: 20px; accent-color: var(--rose); }
.variant-table table { min-width: 760px; }
.drawer { margin-top: 20px; }

/* ---------- responsif ---------- */
@media (max-width: 860px) {
  .two-col, .product { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { padding: 0 16px; }
  .top-inner { padding: 10px 16px; }
  .brand img { width: 42px; height: 42px; }
  .brand-name { font-size: 20px; }
  .brand-sub { display: none; }
  .top-link { padding: 8px 8px; font-size: 14px; }
  .top-link .label-long { display: none; }
  .brand { gap: 8px; min-width: 0; }
  .nav { gap: 0; flex-shrink: 0; }
  .main { padding: 22px 0 48px; }
  .panel { padding: 20px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-body { padding: 10px 12px 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .order-top { flex-direction: column; }
  .admin-shell { padding: 20px 16px 50px; }
  .admin-head { flex-direction: column; align-items: flex-start; }
  .admin-head h1 { font-size: 28px; }
  .top-inner:has(.nav.admin) { flex-wrap: wrap; row-gap: 6px; }
  .nav.admin { width: 100%; justify-content: space-between; overflow-x: auto; }
  .nav.admin .top-link { padding: 8px 6px; }
  /* tabel jadi kartu di HP, seperti xawaigo */
  .table-wrap.cards { overflow: visible; border: 0; background: transparent; }
  .table-wrap.cards table { min-width: 0; border-collapse: separate; border-spacing: 0 10px; }
  .table-wrap.cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .table-wrap.cards tbody, .table-wrap.cards tr, .table-wrap.cards td { display: block; width: 100%; }
  .table-wrap.cards tr { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; }
  .table-wrap.cards td { padding: 8px 0; border-bottom: 1px solid var(--soft); display: grid; grid-template-columns: 96px 1fr; gap: 8px; font-size: 14px; }
  .table-wrap.cards td:last-child { border: 0; }
  .table-wrap.cards td::before { content: attr(data-label); font-size: 11px; color: var(--muted); font-weight: 800; text-transform: uppercase; }
}

@media (max-width: 480px) {
  .brand-name { font-size: 18px; }
  .top-link.home { display: none; } /* logo sudah jadi tombol ke katalog */
}

@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}
