:root {
  color-scheme: light;
  --magenta: #d81b60;
  --magenta-soft: rgba(216, 27, 96, 0.1);
  --promo: #16a34a;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.9);
  --blur: 20px;
  --glass-shadow: 0 8px 32px rgba(216, 27, 96, 0.08);
  --radius: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fafafa;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(ellipse at 12% 8%, rgba(216, 27, 96, 0.1), transparent 34rem),
    radial-gradient(ellipse at 88% 40%, rgba(216, 27, 96, 0.07), transparent 31rem),
    #fafafa;
}

button, input, select { font: inherit; }
a { color: var(--magenta); }
.page-shell { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 48px; }
.glass-card, .glass-header, .store-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
}
.glass-header { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--radius); }
.store-header { margin-top: 14px; }
.glass-card { border-radius: 18px; padding: 20px; }
.brand-mark { width: 52px; height: 52px; object-fit: contain; border-radius: 14px; }
.app-mark { display: grid; width: 48px; height: 48px; place-items: center; color: white; background: var(--magenta); border-radius: 16px; font-size: 1.2rem; font-weight: 900; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .brand-heading { color: var(--magenta); }
h1 { margin-bottom: 4px; font-size: clamp(1.45rem, 3vw, 2rem); }
h2 { margin: 30px 0 14px; font-size: 1.35rem; }
h3 { margin-bottom: 8px; }
.subtle, .muted { color: var(--muted); }
.store-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.store-card { display: flex; min-height: 260px; flex-direction: column; align-items: flex-start; padding: 24px; border-radius: 24px; color: inherit; text-decoration: none; transition: transform 160ms ease, box-shadow 160ms ease; }
.store-card:hover, .store-card:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(216, 27, 96, 0.15); outline: 2px solid rgba(216, 27, 96, 0.3); }
.store-card img { width: 110px; height: 100px; object-fit: contain; margin-bottom: 18px; }
.store-card h2 { margin: 0 0 8px; }
.store-card p { margin-bottom: 8px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 22px 0; }
.glass-input, .glass-select { width: 100%; padding: 12px 14px; color: var(--ink); background: rgba(255,255,255,.72); border: 1px solid rgba(216,27,96,.15); border-radius: 12px; outline: none; }
.glass-input:focus, .glass-select:focus { border-color: var(--magenta); box-shadow: 0 0 0 3px rgba(216,27,96,.1); }
.search-input { max-width: 500px; }
.btn-primary, .btn-wa, .btn-secondary { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 10px 16px; border: 0; border-radius: 12px; cursor: pointer; font-weight: 700; text-decoration: none; }
.btn-primary { color: #fff; background: var(--magenta); }
.btn-primary:hover { background: #b91450; }
.btn-wa { color: #fff; background: #16a34a; }
.btn-wa:hover { background: #12813b; }
.btn-secondary { color: var(--magenta); background: var(--magenta-soft); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.product-card { display: flex; flex-direction: column; gap: 8px; }
.product-card .btn-wa { margin-top: auto; }
.brand-heading { margin: 22px 0 12px; font-size: 1.2rem; }
.harga { color: var(--ink); font-size: 1.1rem; font-weight: 800; }
.harga-promo { color: var(--promo); font-size: 1.1rem; font-weight: 800; }
.harga-promo-original { color: var(--muted); text-decoration: line-through; }
.badge-promo, .badge-empty { display: inline-block; width: fit-content; padding: 4px 8px; color: #fff; background: var(--promo); border-radius: 999px; font-size: .72rem; font-weight: 800; }
.badge-empty { background: #dc2626; }
.condition, .stock { color: var(--muted); font-size: .86rem; }
.summary-table { width: 100%; border-collapse: collapse; }
.summary-table th, .summary-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid rgba(216,27,96,.12); }
.summary-table th { color: var(--magenta); }
.form-grid { display: grid; gap: 14px; }
.form-grid label { display: grid; gap: 7px; color: var(--muted); font-size: .92rem; font-weight: 650; }
.admin-section { display: grid; gap: 18px; margin-top: 22px; }
.table-wrap { overflow-x: auto; }
.notice { min-height: 1.5em; color: var(--magenta); }
.page-footer { margin-top: 34px; padding: 18px 4px; color: var(--muted); text-align: center; }
.page-footer a { margin-left: 10px; }
.empty-state { padding: 24px; color: var(--muted); text-align: center; }
[hidden] { display: none !important; }

@media (max-width: 640px) {
  :root { --blur: 12px; }
  .page-shell { width: min(100% - 22px, 1120px); padding-top: 16px; }
  .glass-header { gap: 12px; padding: 14px; }
  .store-grid, .product-grid { grid-template-columns: 1fr; }
  .store-card { min-height: 220px; padding: 20px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .summary-table th, .summary-table td { padding: 10px 6px; }
}
