/* ==========================================================================
   Florist — stylesheet
   Struktur: 1) token  2) dasar  3) utilitas  4) komponen publik
             5) halaman publik  6) panel admin  7) responsif
   ========================================================================== */

/* 1. Token ---------------------------------------------------------------- */
:root {
  --cream: #fdfaf6;
  --cream-dark: #f6efe7;
  --white: #ffffff;

  --green-900: #16311f;
  --green-800: #1e4029;
  --green-700: #2a5738;
  --green-600: #3a7049;

  --rose-600: #b95b6d;
  --rose-500: #c9748a;
  --rose-200: #f3dde2;
  --rose-100: #faeef1;

  --blush: #f9e9ec;
  --gold: #c79a45;

  --ink: #22201d;
  --ink-soft: #4b4741;
  --muted: #857e75;
  --line: #e8e0d6;

  --danger: #b03a3a;
  --danger-soft: #fdeaea;
  --success: #2f6b45;
  --success-soft: #e6f3ea;
  --info: #2f5d8a;
  --info-soft: #e8f0f8;
  --warning: #8a6516;
  --warning-soft: #fdf3e0;

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(34, 32, 29, .06), 0 2px 8px rgba(34, 32, 29, .04);
  --shadow: 0 6px 24px rgba(34, 32, 29, .08);
  --shadow-lg: 0 18px 48px rgba(34, 32, 29, .12);

  /* Teks di atas permukaan berwarna merek (tombol, badge, tab aktif). */
  --on-brand: #ffffff;
  /* Teks di atas permukaan gelap (topbar, sidebar admin, footer). */
  --on-dark: #ffffff;
  --on-dark-soft: #cfdcd3;
  --on-dark-faint: #9db3a6;

  --font-body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --container: 1180px;
}

/* 2. Dasar ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .5rem;
  color: var(--green-900);
}

h1 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.75rem); }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1rem; }

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--rose-600); }

img { max-width: 100%; display: block; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .875em;
  background: var(--cream-dark);
  padding: .1em .4em;
  border-radius: 5px;
}

hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }

:focus-visible {
  outline: 3px solid var(--rose-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 3. Utilitas ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-800);
  color: var(--on-brand);
  padding: .6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.muted { color: var(--muted); }

.price { font-weight: 700; color: var(--green-800); white-space: nowrap; }
.price-lg { font-size: 1.6rem; }

.empty { color: var(--muted); font-style: italic; padding: 1rem 0; }

/* 4. Komponen dasar ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .6rem 1.1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
  transition: transform .12s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--green-800); color: var(--on-brand); }
.btn-primary:hover { background: var(--green-900); color: var(--on-brand); }

.btn-outline {
  background: transparent;
  color: var(--green-800);
  border-color: var(--green-700);
}
.btn-outline:hover { background: var(--green-800); color: var(--on-brand); border-color: var(--green-800); }

.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover { background: var(--cream-dark); color: var(--ink); }

.btn-danger-ghost { background: transparent; color: var(--danger); border-color: #eccaca; }
.btn-danger-ghost:hover { background: var(--danger-soft); color: var(--danger); border-color: #e0b0b0; }

.btn-sm { padding: .38rem .8rem; font-size: .8125rem; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* --- ikon sebaris (mis. WhatsApp) --- */
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
  display: block;
}

/* Tautan teks yang disertai ikon (topbar, footer, daftar kontak). */
.link-icon {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.card-head h2 { margin: 0; }

.badge {
  display: inline-block;
  padding: .22rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: var(--cream-dark);
  color: var(--ink-soft);
  white-space: nowrap;
}
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-warning { background: var(--warning-soft); color: var(--warning); }
.badge-muted { background: #eeeae4; color: var(--muted); }
.badge-lg { font-size: .875rem; padding: .35rem .9rem; }

.flash {
  padding: .85rem 1.1rem;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  border-left: 5px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}
.flash-success { border-left-color: var(--success); background: var(--success-soft); color: var(--success); }
.flash-error { border-left-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.flash-info { border-left-color: var(--info); background: var(--info-soft); color: var(--info); }

/* Form */
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: .35rem;
  color: var(--ink-soft);
}
.field .req { color: var(--rose-600); }

input[type="text"], input[type="tel"], input[type="email"], input[type="search"],
input[type="number"], input[type="date"], input[type="password"], input[type="file"],
select, textarea {
  width: 100%;
  padding: .62rem .8rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(58, 112, 73, .12);
  outline: none;
}
textarea { resize: vertical; }
input[type="file"] { padding: .45rem; background: var(--cream); }

.field-error input, .field-error select, .field-error textarea { border-color: var(--danger); }
.error-text { color: var(--danger); font-size: .8125rem; margin: .35rem 0 0; }
.field-hint { font-size: .8125rem; color: var(--muted); margin: .35rem 0 0; }

.card-narrow { max-width: 560px; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-narrow { max-width: 140px; }

.checkbox { display: flex; align-items: flex-start; gap: .55rem; font-weight: 500; }
.checkbox input { width: auto; margin-top: .3rem; }
.field-checkbox { margin-top: .4rem; }

.form-note { font-size: .8125rem; color: var(--muted); margin: .75rem 0 0; }

/* Tabel */
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { padding: .7rem .75rem; text-align: left; vertical-align: middle; }
.table thead th {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
.table tbody tr { border-bottom: 1px solid var(--line); }
.table tbody tr:hover { background: var(--cream); }
.table tfoot th { border-top: 2px solid var(--line); padding-top: .8rem; }
.table-wrap { overflow-x: auto; }
.col-thumb { width: 62px; }
.col-narrow { width: 110px; }
.row-actions { display: flex; gap: .4rem; align-items: center; white-space: nowrap; }

.table-thumb {
  width: 46px; height: 46px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--blush);
}
.table-thumb-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rose-600);
  background: var(--rose-200);
}

/* 5a. Kerangka situs ------------------------------------------------------ */
.topbar {
  background: var(--green-900);
  color: #dfe9e1;
  font-size: .8125rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .5rem;
  flex-wrap: wrap;
}
.topbar a { color: var(--on-dark); }
.topbar a:hover { color: var(--rose-200); }

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: .9rem;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .7rem; color: inherit; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--rose-500), var(--rose-600));
  color: var(--on-brand);
  font-size: 1.4rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--green-900); }
.brand-text small { font-size: .75rem; color: var(--muted); }

.main-nav { display: flex; gap: 1.1rem; flex: 1; flex-wrap: wrap; }
.main-nav a {
  font-weight: 600;
  font-size: .9375rem;
  color: var(--ink-soft);
  padding-block: .25rem;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--green-800); }
.main-nav a.active { color: var(--green-800); border-bottom-color: var(--rose-500); }

.header-actions { display: flex; align-items: center; gap: .6rem; }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: var(--rose-100);
  color: var(--green-800);
  font-weight: 600;
  font-size: .875rem;
}
.cart-link:hover { background: var(--rose-200); color: var(--green-900); }
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  height: 1.4rem;
  padding-inline: .3rem;
  border-radius: 999px;
  background: var(--green-800);
  color: var(--on-brand);
  font-size: .75rem;
  font-weight: 700;
}

.category-strip {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .8rem;
  scrollbar-width: thin;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .8rem;
  border-radius: 999px;
  background: var(--cream-dark);
  color: var(--ink-soft);
  font-size: .8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.chip:hover { background: var(--rose-200); color: var(--green-900); }
.chip-count {
  background: var(--white);
  border-radius: 999px;
  padding: 0 .4rem;
  font-size: .6875rem;
  color: var(--muted);
}

.site-footer {
  background: var(--green-900);
  color: var(--on-dark-soft);
  margin-top: 4rem;
  padding-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.site-footer h3, .site-footer h4 { color: var(--on-dark); }
.site-footer p { font-size: .875rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; font-size: .875rem; }
.site-footer a { color: var(--on-dark-soft); }
.site-footer a:hover { color: var(--rose-200); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-block: 1.1rem;
  font-size: .8125rem;
}
.footer-bottom p { margin: 0; }

/* 5b. Beranda ------------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, var(--blush) 0%, var(--cream) 55%, var(--cream-dark) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: center;
  padding-block: 3.5rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--rose-600);
  margin-bottom: .6rem;
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.lead { font-size: 1.0625rem; color: var(--ink-soft); max-width: 46ch; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.4rem 0 1.5rem; }
.hero-points {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  font-size: .875rem;
  color: var(--ink-soft);
}
.hero-art { position: relative; min-height: 260px; display: grid; place-items: center; }
.hero-blob {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, var(--rose-200), transparent 62%),
              radial-gradient(circle at 70% 70%, #dcebd9, transparent 60%);
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  filter: blur(2px);
}
.hero-emoji { position: relative; font-size: 7rem; line-height: 1; }

.section { padding-block: 3.2rem; }
.section-alt { background: var(--cream-dark); }
.section-head { max-width: 62ch; margin-bottom: 1.8rem; }
.section-head p { color: var(--muted); margin: 0; }
.section-actions { margin-top: 1.8rem; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}
.category-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--rose-200);
  color: inherit;
}
.category-card-mark { font-size: 1.5rem; color: var(--rose-500); }
.category-card h3 { margin: .5rem 0 .35rem; }
.category-card p { font-size: .875rem; color: var(--muted); margin-bottom: .8rem; }
.category-card-count { font-size: .8125rem; font-weight: 700; color: var(--green-700); }

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  counter-reset: step;
}
.steps li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green-800);
  color: var(--on-brand);
  font-weight: 700;
  margin-bottom: .7rem;
}
.steps p { margin: 0; font-size: .9rem; color: var(--ink-soft); }

/* Kartu produk */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.3rem;
}
.product-grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, var(--rose-100), var(--cream-dark));
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-placeholder {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 700;
  color: var(--rose-500);
  opacity: .75;
}
.product-placeholder-lg { font-size: 6rem; }
.product-flag {
  position: absolute;
  top: .6rem; left: .6rem;
  background: rgba(34, 32, 29, .78);
  color: var(--on-dark);
  font-size: .6875rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 999px;
}
.product-flag-sold { background: var(--danger); left: auto; right: .6rem; }

.product-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product-category {
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 700;
  color: var(--rose-600);
}
.product-body h3 { margin: .35rem 0 .4rem; font-size: 1.05rem; }
.product-body h3 a { color: inherit; }
.product-desc { font-size: .875rem; color: var(--muted); margin-bottom: 1rem; flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.product-footer small.stock { display: block; font-size: .75rem; color: var(--muted); }

/* 5c. Halaman katalog ----------------------------------------------------- */
.page-head {
  background: var(--cream-dark);
  border-bottom: 1px solid var(--line);
  padding-block: 2.2rem;
  margin-bottom: 2rem;
}
.page-head h1 { margin-bottom: .35rem; }
.page-head p { color: var(--ink-soft); margin: 0; max-width: 62ch; }

.breadcrumb { font-size: .8125rem; color: var(--muted); margin-bottom: .6rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--rose-600); }
.breadcrumb span { margin-inline: .35rem; }

.catalog-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  align-items: start;
}
.catalog-sidebar h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.filter-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.filter-list a {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  padding: .45rem .7rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: .9375rem;
}
.filter-list a:hover { background: var(--rose-100); color: var(--green-900); }
.filter-list a.active { background: var(--green-800); color: var(--on-brand); font-weight: 600; }
.filter-count { font-size: .75rem; opacity: .75; }

.sidebar-cta {
  background: var(--white);
  border: 1px dashed var(--rose-200);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.sidebar-cta h3 { font-size: 1rem; }
.sidebar-cta p { font-size: .875rem; color: var(--muted); }

.filter-bar {
  display: flex;
  gap: .7rem;
  align-items: flex-end;
  flex-wrap: wrap;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.filter-search { flex: 1 1 240px; }
.filter-sort { flex: 0 0 190px; }
.filter-bar .field { margin-bottom: 0; }

.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 2.2rem; flex-wrap: wrap; }
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: .45rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink-soft);
  font-size: .875rem;
  font-weight: 600;
}
.page-link:hover { border-color: var(--green-600); color: var(--green-800); }
.page-link.active { background: var(--green-800); border-color: var(--green-800); color: var(--on-brand); }
.page-link.disabled { color: #c3bdb4; background: var(--cream-dark); }
.pagination-info { text-align: center; font-size: .8125rem; color: var(--muted); margin-top: .7rem; }

/* 5d. Detail produk ------------------------------------------------------- */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.product-detail-media {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: linear-gradient(150deg, var(--rose-100), var(--cream-dark));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.product-detail-media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info h1 { margin-bottom: .6rem; }
.stock-line { margin-bottom: 1.2rem; }
.product-description { color: var(--ink-soft); margin-bottom: 1.5rem; white-space: pre-line; }

.buy-form {
  display: flex;
  gap: .7rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}
.buy-form label { font-weight: 600; font-size: .875rem; }
.qty-input { width: 5rem !important; text-align: center; }
.product-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.product-perks {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
}
.product-perks li { font-size: .9rem; color: var(--ink-soft); margin-bottom: .5rem; }

/* 5e. Keranjang ----------------------------------------------------------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.cart-table { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-table thead th { padding: 1rem .9rem; }
.cart-table td { padding: .9rem; }
.cart-product a { display: flex; align-items: center; gap: .8rem; color: inherit; font-weight: 600; }
.cart-thumb { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; background: var(--blush); }
.cart-thumb-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--rose-600);
  background: var(--rose-200);
}
.cart-product-name { font-size: .9375rem; }
.cart-table form { display: flex; align-items: center; gap: .4rem; }
.cart-clear { margin-top: 1rem; }

.cart-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 110px;
}
.cart-summary h2 { font-size: 1.1rem; }
.summary-list { margin: 0 0 1rem; }
.summary-list > div { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; font-size: .9rem; }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 600; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 2px solid var(--line);
  padding-top: .9rem;
  margin-bottom: 1.1rem;
}
.summary-total strong { font-size: 1.3rem; color: var(--green-800); }
.summary-total + .btn, .cart-summary .btn + .btn { margin-top: .5rem; }

.summary-items { list-style: none; margin: 0 0 1rem; padding: 0; }
.summary-items li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .9rem;
  padding: .45rem 0;
  border-bottom: 1px dashed var(--line);
}
.summary-items small { color: var(--muted); }

.empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-state > span[aria-hidden] { font-size: 2.6rem; display: block; margin-bottom: .8rem; }
.empty-state p { color: var(--muted); }
.error-state .error-code {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--rose-500);
  line-height: 1;
  margin-bottom: .5rem;
}
.error-actions, .order-actions, .prose-cta {
  display: flex;
  gap: .7rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

/* 5f. Checkout & pesanan --------------------------------------------------- */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
.checkout-form h2 { font-size: 1.15rem; margin-bottom: 1.2rem; }
.checkout-summary { position: sticky; top: 110px; }
.checkout-summary h2 { font-size: 1.15rem; }

.order-page { padding-block: 2.5rem; }
.order-success {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.order-success-icon { font-size: 2.6rem; display: block; margin-bottom: .5rem; }
.order-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--green-800);
  background: var(--cream-dark);
  display: inline-block;
  padding: .4rem 1.1rem;
  border-radius: var(--radius-sm);
  margin: .4rem 0;
}
.order-code-sm { font-size: 1.1rem; }
.order-status { color: var(--ink-soft); }
.order-actions { justify-content: flex-start; }

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.detail-list { margin: 0; }
.detail-list > div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: .9rem;
}
.detail-list dt { color: var(--muted); font-weight: 600; }
.detail-list dd { margin: 0; }
.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.detail-header p { margin: 0; }
.detail-actions { margin-top: 2rem; }

.prose { max-width: 68ch; }
.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; color: var(--ink-soft); }
.prose li { margin-bottom: .4rem; }

.contact-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: start;
}
.contact-card h2 { font-size: 1.15rem; }
.contact-number { font-weight: 700; color: var(--green-800); margin-top: .8rem; }
.contact-card details { border-top: 1px solid var(--line); padding: .7rem 0; }
.contact-card summary { cursor: pointer; font-weight: 600; }
.contact-card details p { margin: .5rem 0 0; font-size: .9rem; color: var(--ink-soft); }

.auth-card {
  max-width: 420px;
  margin: 3rem auto 4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.5rem; }
.auth-sub { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }

/* 6. Panel admin ---------------------------------------------------------- */
.admin-body { background: var(--cream-dark); }

.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }

.admin-sidebar {
  background: var(--green-900);
  color: var(--on-dark-soft);
  padding: 1.5rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-brand { display: flex; align-items: center; gap: .7rem; color: var(--on-dark); }
.admin-brand span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.admin-brand strong { font-family: var(--font-display); font-size: 1.1rem; }
.admin-brand small { font-size: .75rem; color: var(--on-dark-faint); }

.admin-nav { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.admin-nav a {
  padding: .6rem .8rem;
  border-radius: var(--radius-sm);
  color: var(--on-dark-soft);
  font-weight: 600;
  font-size: .9375rem;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .08); color: var(--on-dark); }
.admin-nav a.active { background: var(--rose-600); color: var(--on-brand); }

.admin-sidebar-footer { display: flex; flex-direction: column; gap: .5rem; }
.admin-sidebar-footer .btn-ghost { color: var(--on-dark-soft); border-color: rgba(255, 255, 255, .2); }
.admin-sidebar-footer .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: var(--on-dark); }
.admin-sidebar-footer .btn-outline { color: var(--on-dark); border-color: rgba(255, 255, 255, .35); }
.admin-sidebar-footer .btn-outline:hover { background: rgba(255, 255, 255, .12); color: var(--on-dark); }

.admin-main { display: flex; flex-direction: column; min-width: 0; }

.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.admin-topbar h1 { font-size: 1.4rem; margin: 0; }
.admin-topbar p { margin: 0; font-size: .8125rem; color: var(--muted); }
.admin-topbar-actions { display: flex; gap: .5rem; }

.admin-content { padding: 1.8rem; display: flex; flex-direction: column; gap: 1.5rem; }
.admin-content > .flash { margin: 0; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.stat-card-accent { border-color: var(--rose-200); background: linear-gradient(150deg, var(--white), var(--rose-100)); }
.stat-label { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stat-value { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--green-900); line-height: 1.2; margin: .3rem 0; }
.stat-link, .stat-note { font-size: .8125rem; color: var(--muted); }
.stat-link { font-weight: 600; color: var(--green-700); }

.form-card { padding: 1.6rem; }
.form-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
.form-side { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.form-side-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }
.image-preview {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: .7rem;
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-empty { width: 100%; height: 100%; font-size: 2.4rem; border-radius: 0; }

.inline-form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.inline-form .field { margin-bottom: 0; flex: 1 1 200px; }
.inline-form .field-narrow { flex: 0 0 110px; }

.row-edit-form { display: flex; gap: .4rem; align-items: center; }
.table .row-edit-form input { min-width: 120px; }
.table .row-actions form { display: inline-flex; }

.status-tabs { display: flex; gap: .5rem; flex-wrap: wrap; }
.status-tabs a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .9rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.status-tabs a:hover { border-color: var(--green-600); color: var(--green-800); }
.status-tabs a.active { background: var(--green-800); border-color: var(--green-800); color: var(--on-brand); }
.status-tabs span {
  background: rgba(0, 0, 0, .08);
  border-radius: 999px;
  padding: 0 .4rem;
  font-size: .75rem;
}
.status-tabs a.active span { background: rgba(255, 255, 255, .25); }

.status-form {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-end;
  flex-wrap: wrap;
}
.status-form .field { margin-bottom: 0; flex: 1 1 200px; }

/* 7. Responsif ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar .filter-list { display: flex; flex-wrap: wrap; gap: .4rem; }
  .filter-list a { border: 1px solid var(--line); background: var(--white); }
  .sidebar-cta { display: none; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .cart-summary, .checkout-summary { position: static; }
  .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
  .form-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-nav { flex-direction: row; flex-wrap: wrap; }
  .dashboard-split { grid-template-columns: 1fr; }
  .report-filter { grid-template-columns: 1fr 1fr; }
  .report-filter-actions { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .header-inner { gap: .8rem; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; }
  .cart-link-text { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-content { padding: 1.1rem; }
  .admin-topbar { padding: 1rem; }

  /* Tabel keranjang berubah menjadi kartu bertumpuk */
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { padding: .9rem 0; }
  .cart-table td { padding: .3rem .9rem; }
  .cart-table td[data-label]::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 90px;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
  }
  .detail-list > div { grid-template-columns: 1fr; gap: .1rem; }
}

/* 8. Dashboard: grafik & panel -------------------------------------------- */
.dashboard-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }

.chart {
  display: flex;
  align-items: flex-end;
  gap: .3rem;
  padding: .4rem .2rem 0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.chart-col {
  flex: 1 0 32px;
  min-width: 32px;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.chart-plot { height: 150px; display: flex; align-items: flex-end; justify-content: center; }
.chart-bar {
  display: block;
  width: 100%;
  max-width: 46px;
  min-height: 3px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--rose-500), var(--green-700));
}
.chart-col:hover .chart-bar { background: linear-gradient(180deg, var(--rose-600), var(--green-900)); }
.chart-label {
  font-size: .625rem;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

/* 9. Laporan penjualan ---------------------------------------------------- */
.report-presets { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.3rem; }
.report-presets a {
  font-size: .8125rem;
  font-weight: 600;
  padding: .32rem .8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
}
.report-presets a:hover { background: var(--cream-dark); }
.report-presets a.active { background: var(--green-800); border-color: var(--green-800); color: var(--on-brand); }

.report-filter { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; align-items: end; }
.report-filter .field { margin-bottom: 0; }
.report-filter-actions { display: flex; gap: .5rem; }

.status-breakdown { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.status-breakdown-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
}
.status-breakdown-item strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--green-900); }

.bar-track { display: block; height: 8px; min-width: 80px; background: var(--cream-dark); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--green-700); border-radius: 999px; }

.col-no { width: 46px; text-align: center; }
.col-num { text-align: right; }
.col-chart { width: 180px; }
.col-total { text-align: right; }

/* 10. Faktur cetak -------------------------------------------------------- */
.print-body {
  margin: 0;
  padding: 1.6rem 1rem 3rem;
  background: var(--cream-dark);
}
.print-toolbar {
  max-width: 210mm;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}
.sheet {
  max-width: 210mm;
  margin: 0 auto;
  padding: 16mm 14mm;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.invoice-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--green-900);
}
.invoice-seller h1 {
  margin: 0 0 .4rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green-900);
}
.invoice-seller p { margin: .1rem 0; font-size: .875rem; color: var(--ink-soft); }
.invoice-meta { text-align: right; }
.invoice-meta h2 {
  margin: 0 0 .5rem;
  font-size: 1.05rem;
  letter-spacing: .2em;
  color: var(--green-800);
}
.invoice-meta dl { margin: 0; }
.invoice-meta dl > div { display: flex; justify-content: flex-end; gap: .6rem; font-size: .875rem; }
.invoice-meta dt { color: var(--muted); }
.invoice-meta dd { margin: 0; font-weight: 600; }

.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 1.6rem 0; }
.invoice-parties h3 {
  margin: 0 0 .45rem;
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
}
.invoice-parties p { margin: .12rem 0; font-size: .875rem; }
.invoice-strong { font-weight: 700; color: var(--ink); }
.invoice-note { color: var(--muted); }

.invoice-table { border: 1px solid var(--line); }
.invoice-table thead th { background: var(--cream); }
.invoice-table tfoot th { border-top: 2px solid var(--green-900); }
.invoice-terbilang { margin: 1rem 0 0; font-size: .875rem; color: var(--ink-soft); }

.invoice-foot { display: flex; justify-content: space-between; gap: 2rem; margin-top: 2.4rem; }
.invoice-foot h3 {
  margin: 0 0 .45rem;
  font-size: .6875rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--muted);
}
.invoice-foot p { margin: .12rem 0; font-size: .8125rem; color: var(--ink-soft); }
.invoice-sign { text-align: center; min-width: 190px; }
.invoice-sign-space { height: 62px; }
.invoice-printed { margin: 2rem 0 0; font-size: .6875rem; color: var(--muted); text-align: right; }

/* ---- jadwal kirim ---- */

.card-alert { border-left: 4px solid var(--warning); }
.card-alert .card-head h2 { color: var(--warning); }

.schedule-day .card-head { margin-bottom: .9rem; }
.schedule-day .card-head h2 { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.schedule-today { border-left: 4px solid var(--rose-600); }

.row-late td { background: var(--warning-soft); }
.row-late td:first-child { box-shadow: inset 3px 0 0 var(--warning); }

.schedule-edit { position: relative; }
.schedule-edit > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
}
.schedule-edit > summary::-webkit-details-marker { display: none; }
.schedule-edit[open] > summary { margin-bottom: .6rem; }
.schedule-edit > form {
  position: absolute;
  right: 0;
  z-index: 20;
  width: 260px;
  padding: .9rem 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}
.schedule-edit > form .field { margin-bottom: .7rem; }

.manifest-table { table-layout: fixed; width: 100%; font-size: .75rem; }
.manifest-table thead th { font-size: .6875rem; white-space: normal; letter-spacing: .02em; }
.manifest-table th, .manifest-table td {
  padding: .3rem .35rem;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.manifest-table code { white-space: normal; overflow-wrap: anywhere; }
.manifest-table .col-no { width: 4%; }
.manifest-table .col-jam { width: 9%; }
.manifest-table .col-kode { width: 12%; }
.manifest-table .col-pelanggan { width: 13%; }
.manifest-table .col-alamat { width: 22%; }
.manifest-table .col-item { width: 16%; }
.manifest-table .col-total { width: 9%; }
.manifest-table .col-status { width: 8%; }
.manifest-table .col-sign { width: 7%; }
.manifest-empty { margin: 2rem 0; text-align: center; color: var(--muted); }

.sign-block { text-align: center; min-width: 190px; }
.sign-block p { margin: .12rem 0; font-size: .8125rem; color: var(--ink-soft); }
.sign-line { height: 52px; border-bottom: 1px solid var(--ink-soft); margin: 0 0 .35rem; }

@media (max-width: 700px) {
  .invoice-head, .invoice-foot { flex-direction: column; }
  .invoice-meta { text-align: left; }
  .invoice-meta dl > div { justify-content: flex-start; }
  .invoice-parties { grid-template-columns: 1fr; }
  .print-body { padding: .8rem .5rem 2rem; }
  .sheet { padding: 1.2rem 1rem; }
}

@media print {
  .topbar, .site-header, .site-footer, .btn, .status-tabs { display: none !important; }

  /* Halaman cetak: buang kerangka layar, sisakan lembar faktur. */
  .print-toolbar { display: none !important; }
  .print-body { background: #fff; padding: 0; }
  .sheet {
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
  }
  .invoice-head { border-bottom-color: #000; }
  .invoice-table thead th { background: #f2f2f2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .badge { border: 1px solid #999; background: #fff !important; color: #000 !important; }
  .bar-track, .bar-fill { display: none !important; }
  a[href]::after { content: none !important; }

  /* Panel admin dicetak tanpa sidebar agar laporan rapi di kertas. */
  .admin-sidebar { display: none !important; }
  .admin-shell { display: block; grid-template-columns: 1fr; min-height: 0; }
  .admin-main { display: block; }
  .admin-content { padding: 0; gap: 1rem; }
  .admin-topbar {
    padding: 0 0 .6rem;
    background: none;
    border-bottom: 1px solid #999;
    box-shadow: none;
  }
  .card { box-shadow: none; border: 1px solid var(--line); break-inside: avoid; }
  .stat-card, .status-breakdown-item { break-inside: avoid; }
  .table tbody tr:hover { background: transparent; }
  .chart-bar { background: #2a5738 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@page { size: A4; margin: 14mm; }

/* --- Halaman Tampilan: pilihan tema per klien --- */
.theme-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 1.5rem;
  align-items: start;
}

.theme-fieldset {
  margin: 0 0 1.3rem;
  padding: 1rem 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.theme-fieldset legend {
  padding-inline: .4rem;
  font-weight: 700;
  color: var(--green-900);
}

.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .8rem;
}

.theme-card {
  position: relative;
  display: block;
  padding: .9rem 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.theme-card:hover { border-color: var(--rose-200); }

.theme-card input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
}

.theme-card-active,
.theme-card:has(input:checked) {
  border-color: var(--green-800);
  box-shadow: var(--shadow-sm);
}

.theme-card input:focus-visible + .theme-swatch {
  outline: 2px solid var(--green-800);
  outline-offset: 3px;
}

.theme-card strong { display: block; margin-top: .55rem; font-family: var(--font-display); font-size: 1.05rem; }
.theme-card small { display: block; margin-top: .25rem; color: var(--muted); font-size: .8125rem; line-height: 1.5; }

.theme-swatch { display: flex; gap: .35rem; }
.theme-swatch span {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, .12);
}

.theme-reset {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
}

.theme-reset .field-hint { margin: 0; }

.theme-side { position: sticky; top: 1rem; }
.theme-side-note { margin-top: .7rem; }

/* Pratinjau toko: seluruh variabel tema di-set pada elemen ini. */
.theme-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
}

.theme-preview-topbar {
  padding: .45rem .8rem;
  background: var(--green-900);
  color: var(--on-dark);
  font-size: .75rem;
  text-align: center;
}

.theme-preview-header {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .7rem .9rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.theme-preview-brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--green-900);
}

.theme-preview-nav {
  display: flex;
  gap: .7rem;
  margin-left: auto;
  font-size: .75rem;
  font-weight: 600;
  color: var(--green-800);
}

.theme-preview-body { padding: 1rem; }

.theme-preview-card { padding: 1.1rem; text-align: center; }
.theme-preview-card h3 {
  margin: .5rem 0 .2rem;
  font-family: var(--font-display);
  color: var(--green-900);
}
.theme-preview-card .muted { font-size: .8125rem; margin: 0; }
.theme-preview-card .price { margin: .35rem 0 .8rem; }

.theme-preview-actions {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-bottom: .7rem;
}

.theme-preview-footer {
  padding: .6rem;
  background: var(--green-900);
  color: var(--on-dark-soft);
  font-size: .75rem;
  text-align: center;
}

@media (max-width: 1080px) {
  .theme-layout { grid-template-columns: minmax(0, 1fr); }
  .theme-side { position: static; }
}

@media (max-width: 620px) {
  .theme-grid { grid-template-columns: minmax(0, 1fr); }
}
