/* ============================================================
   KOPI LAKU JIWA — Main Stylesheet
   Warm Cream Sand (Light) + Dark Espresso (Dark) dual theme
   ============================================================ */

/* ── CSS Variables / Themes ─────────────────────────────── */
:root,
[data-theme="light"] {
  --bg-primary: #faf7f2;
  --bg-secondary: #f0ebe1;
  --bg-card: #ffffff;
  --bg-card-hover: #fff8f0;
  --bg-nav: rgba(250, 247, 242, 0.95);
  --bg-overlay: rgba(30, 20, 10, 0.55);

  --text-primary: #2b1d0e;
  --text-secondary: #5c3d1e;
  --text-muted: #9a7a5a;
  --text-on-accent: #ffffff;

  --accent: #a0722a;
  --accent-light: #c79a63;
  --accent-dark: #7a5520;
  --accent-bg: rgba(160, 114, 42, 0.1);

  --border: rgba(160, 114, 42, 0.2);
  --border-strong: rgba(160, 114, 42, 0.4);

  --shadow-sm: 0 2px 8px rgba(43, 29, 14, 0.08);
  --shadow-md: 0 8px 32px rgba(43, 29, 14, 0.12);
  --shadow-lg: 0 20px 60px rgba(43, 29, 14, 0.15);

  --hero-gradient: linear-gradient(160deg, #2b1d0e 0%, #5c3d1e 50%, #3d2610 100%);

  --input-bg: #fff;
  --input-border: #ddd3c5;

  --flash-success-bg: #e8f5e9;
  --flash-success-text: #2e7d32;
  --flash-error-bg: #fdecea;
  --flash-error-text: #c62828;
}

[data-theme="dark"] {
  --bg-primary: #1d1410;
  --bg-secondary: #261b15;
  --bg-card: #2e1f16;
  --bg-card-hover: #3a2619;
  --bg-nav: rgba(29, 20, 16, 0.97);
  --bg-overlay: rgba(10, 6, 4, 0.70);

  --text-primary: #f0e8dc;
  --text-secondary: #c9a97a;
  --text-muted: #8a6a50;
  --text-on-accent: #1d1410;

  --accent: #c79a63;
  --accent-light: #e0bb8a;
  --accent-dark: #a07840;
  --accent-bg: rgba(199, 154, 99, 0.12);

  --border: rgba(199, 154, 99, 0.18);
  --border-strong: rgba(199, 154, 99, 0.35);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);

  --hero-gradient: linear-gradient(160deg, #0d0905 0%, #2b1d0e 50%, #1a1009 100%);

  --input-bg: #261b15;
  --input-border: #4a3020;

  --flash-success-bg: #1b3d1e;
  --flash-success-text: #81c784;
  --flash-error-bg: #3d1b1b;
  --flash-error-text: #ef9a9a;
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--text-primary);
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  transition: background 0.35s, box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}
.brand-icon { font-size: 1.4rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-link {
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.nav-link:hover, .nav-link.active {
  color: var(--accent);
  background: var(--accent-bg);
}
.nav-cta {
  background: var(--accent);
  color: var(--text-on-accent) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

.nav-right { display: flex; align-items: center; gap: 0.75rem; }

/* Theme Toggle */
.theme-toggle {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s;
}
.theme-toggle:hover { border-color: var(--accent); transform: scale(1.1); }

[data-theme="light"] .theme-icon-moon { display: none; }
[data-theme="dark"] .theme-icon-sun { display: none; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── Flash Messages ──────────────────────────────────────── */
.flash-container {
  position: fixed;
  top: 80px; right: 1.5rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
}
.flash {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideIn 0.3s ease;
}
.flash--success { background: var(--flash-success-bg); color: var(--flash-success-text); border: 1px solid currentColor; }
.flash--error   { background: var(--flash-error-bg);   color: var(--flash-error-text);   border: 1px solid currentColor; }
.flash-close {
  background: none; border: none; cursor: pointer;
  font-size: 1rem; color: inherit; opacity: 0.7;
}
.flash-close:hover { opacity: 1; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Hero Section ────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--hero-gradient);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 68px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c79a63' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 100px;
  background: var(--bg-primary);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(199, 154, 99, 0.15);
  border: 1px solid rgba(199, 154, 99, 0.35);
  color: #c79a63;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #f0e8dc;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-title .accent { color: #c79a63; font-style: italic; }

.hero-desc {
  color: #b89a7a;
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero-badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(199, 154, 99, 0.2);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  backdrop-filter: blur(8px);
}
.hero-badge .badge-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #c79a63;
  font-weight: 700;
}
.hero-badge .badge-label {
  font-size: 0.78rem;
  color: #a08060;
  margin-top: 0.2rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(160, 114, 42, 0.35);
}
.btn-outline {
  background: transparent;
  color: #c79a63;
  border-color: rgba(199, 154, 99, 0.5);
}
.btn-outline:hover {
  background: rgba(199, 154, 99, 0.1);
  border-color: #c79a63;
  color: #c79a63;
  transform: translateY(-2px);
}
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: #16a34a; border-color: #16a34a; color: #fff; }
.btn-success:hover { background: #15803d; }

/* ── Section Wrapper ─────────────────────────────────────── */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  color: var(--text-primary);
  margin-bottom: 0.85rem;
}
.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── Product Cards ───────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s;
  box-shadow: var(--shadow-sm);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-light);
}

.product-img-wrap {
  height: 240px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--accent-bg) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-img-placeholder {
  font-size: 5rem;
  opacity: 0.35;
}

.product-body { padding: 1.75rem; }
.product-origin {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.product-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.product-notes {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-family: 'DM Mono', monospace;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}
.price-from { font-size: 0.8rem; color: var(--text-muted); }
.price-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
}
.product-actions { display: flex; gap: 0.75rem; }

/* ── Variants Selector ───────────────────────────────────── */
.variant-selector { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.variant-btn {
  padding: 0.4rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all 0.2s;
}
.variant-btn:hover, .variant-btn.active {
  border-color: var(--accent);
  background: var(--accent-bg);
  color: var(--accent);
}

/* ── Gallery Grid ────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.gallery-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--bg-secondary);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-overlay);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-caption {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}
.gallery-cat-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  background: var(--accent);
  color: #fff;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

/* ── Filter Tabs ─────────────────────────────────────────── */
.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.filter-tab:hover, .filter-tab.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Order Form ──────────────────────────────────────────── */
.form-grid { display: grid; gap: 1.25rem; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.form-label .required { color: #e53e3e; }

.form-control {
  padding: 0.75rem 1rem;
  border: 2px solid var(--input-border);
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(160, 114, 42, 0.12);
}
.form-control::placeholder { color: var(--text-muted); opacity: 0.7; }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Payment method cards */
.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.payment-option input { display: none; }
.payment-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.25rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  background: var(--bg-card);
  transition: all 0.2s;
  text-align: center;
}
.payment-label:hover { border-color: var(--accent); background: var(--accent-bg); }
.payment-option input:checked + .payment-label {
  border-color: var(--accent);
  background: var(--accent-bg);
  box-shadow: 0 0 0 3px rgba(160, 114, 42, 0.15);
}
.payment-icon { font-size: 2rem; }
.payment-name { font-size: 0.88rem; font-weight: 700; color: var(--text-primary); }
.payment-desc { font-size: 0.75rem; color: var(--text-muted); }

/* Order summary */
.order-summary-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  position: sticky;
  top: 90px;
}
.summary-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}
.summary-row .label { color: var(--text-muted); }
.summary-row .value { font-weight: 600; color: var(--text-primary); }
.summary-total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--border);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
}

/* ── Page Layout (Pesan / Detail) ────────────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
.page-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.page-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ── Why Section ─────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: center;
  transition: all 0.3s;
}
.why-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.why-icon { font-size: 2.5rem; margin-bottom: 0.85rem; }
.why-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ── Success Page ────────────────────────────────────────── */
.success-wrapper {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  padding-top: calc(68px + 2rem);
}
.success-card {
  max-width: 600px;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.success-icon { font-size: 4rem; margin-bottom: 1rem; }
.success-kode {
  font-family: 'DM Mono', monospace;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1.25rem;
  display: inline-block;
  margin: 0.75rem 0 1.5rem;
}
.detail-list { text-align: left; margin: 1.5rem 0; }
.detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.9rem;
}
.detail-item:last-child { border-bottom: none; }
.detail-item .dk { color: var(--text-muted); }
.detail-item .dv { font-weight: 600; }

/* ── Admin Base ──────────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 2rem 1.25rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-sub { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 2rem; }

.sidebar-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.sidebar-link:hover, .sidebar-link.active {
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--border);
}
.sidebar-link .icon { font-size: 1.1rem; width: 20px; text-align: center; }

.admin-main { padding: 2.5rem; overflow-y: auto; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-page-title { font-size: 1.6rem; }

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.25s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.stat-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.2rem; }

/* Tables */
.data-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.data-table th {
  background: var(--bg-secondary);
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--accent-bg); }

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
}
.status-menunggu { background: #fef3c7; color: #92400e; }
.status-dikonfirmasi { background: #d1fae5; color: #065f46; }
.status-dikirim { background: #dbeafe; color: #1e40af; }
.status-selesai { background: #f3f4f6; color: #374151; }
.status-batal { background: #fee2e2; color: #991b1b; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border-strong);
  border-radius: 14px;
  padding: 2.5rem;
  text-align: center;
  background: var(--accent-bg);
  cursor: pointer;
  transition: all 0.2s;
}
.upload-zone:hover { border-color: var(--accent); }
.upload-zone input[type="file"] { display: none; }
.upload-icon { font-size: 3rem; margin-bottom: 0.75rem; }
.upload-text { font-size: 0.9rem; color: var(--text-muted); }
.upload-text strong { color: var(--accent); }

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }

/* ── Utility ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state p { font-size: 1rem; }

/* Page header (non-hero pages) */
.page-header {
  background: var(--hero-gradient);
  padding: calc(68px + 3.5rem) 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--bg-primary);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-header h1 { color: #f0e8dc; font-size: clamp(1.8rem, 4vw, 3rem); }
.page-header p { color: #b89a7a; margin-top: 0.75rem; font-size: 1rem; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-badges { display: none; }
  .page-layout { grid-template-columns: 1fr; }
  .order-summary-box { position: static; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--bg-nav);
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    z-index: 999;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
  }
  .nav-hamburger { display: flex; }
  .products-grid { grid-template-columns: 1fr; }
  .payment-options { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 3.5rem 1.25rem; }
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.65s ease both; }
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.35s; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--hero-gradient);
  color: #b89a7a;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 3rem;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #f0e8dc;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #a08060;
}
.footer-links h4,
.footer-contact h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #c79a63;
  margin-bottom: 1rem;
}
.footer-links ul { list-style: none; padding: 0; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links ul li a {
  color: #a08060;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links ul li a:hover { color: #c79a63; }
.footer-contact p {
  font-size: 0.85rem;
  line-height: 1.75;
  margin-bottom: 0.5rem;
  color: #a08060;
}
.footer-contact a { color: #c79a63; }
.footer-contact a:hover { color: #e0bb8a; }
.footer-bottom {
  border-top: 1px solid rgba(199,154,99,0.15);
  text-align: center;
  padding: 1.25rem 2rem;
  font-size: 0.78rem;
  color: #6a5040;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1.25rem 1.5rem;
  }
}
