/* ============================================
   MIKU — Kerajinan Khas Tembilahan
   Modern Minimalis | CSS Utama
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --cream:     #FAFAF8;
  --white:     #FFFFFF;
  --ink:       #1A1A1A;
  --ink-light: #5A5A5A;
  --ink-muted: #9A9A9A;
  --gold:      #B8935A;
  --gold-soft: #E8D5B7;
  --border:    #EBEBEB;
  --red:       #C0392B;
  --green:     #27AE60;

  --radius:    4px;
  --radius-lg: 12px;
  --shadow:    0 2px 16px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 68px;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.navbar-brand span { color: var(--gold); }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.navbar-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-light);
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.navbar-nav a:hover, .navbar-nav a.aktif { color: var(--ink); }
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}
.cart-badge {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--gold);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: #333; }
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #9a7a48; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--ink-light);
}
.btn-ghost:hover { color: var(--ink); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ── HERO ── */
.hero {
  background: var(--white);
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero-title { margin-bottom: 20px; }
.hero-desc {
  color: var(--ink-light);
  margin-bottom: 36px;
  max-width: 460px;
  line-height: 1.8;
}
.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--border);
}
.hero-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  bottom: 20px; left: 20px;
  background: white;
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 0.8rem;
}
.hero-badge strong { display: block; font-size: 1.1rem; font-family: var(--font-display); }

/* ── PRODUK CARD ── */
.produk-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid var(--border);
}
.produk-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.produk-card-img {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--cream);
  overflow: hidden;
}
.produk-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.produk-card:hover .produk-card-img img { transform: scale(1.04); }
.produk-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ink);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.produk-card-badge.diskon { background: var(--red); }
.produk-card-wishlist {
  position: absolute;
  top: 12px; right: 12px;
  background: white;
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  font-size: 1rem;
}
.produk-card-wishlist:hover { transform: scale(1.1); }
.produk-card-body { padding: 16px; }
.produk-card-kategori {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.produk-card-nama {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.produk-card-harga {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.harga-utama { font-weight: 600; font-size: 1.05rem; }
.harga-coret { font-size: 0.85rem; color: var(--ink-muted); text-decoration: line-through; }
.produk-card-actions {
  padding: 0 16px 16px;
  display: flex;
  gap: 8px;
}

/* ── KATEGORI GRID ── */
.kat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}
.kat-card:hover { border-color: var(--gold); background: var(--cream); }
.kat-card-icon { font-size: 2rem; margin-bottom: 10px; }
.kat-card-nama { font-weight: 600; font-size: 0.9rem; }

/* ── SECTION HEADER ── */
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-title { margin-bottom: 14px; }
.section-desc { color: var(--ink-light); max-width: 520px; margin: 0 auto; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-bottom: 28px;
}
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--ink-muted); }

/* ── FORM ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink-light);
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--ink);
}
.form-control::placeholder { color: var(--ink-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }

/* ── CARD ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-sm { padding: 20px; }

/* ── FLASH MESSAGE ── */
.flash-msg {
  position: fixed;
  top: 80px; right: 20px;
  color: white;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.88rem;
  z-index: 9999;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  max-width: 320px;
}
@keyframes slideIn {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── BADGE STATUS ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-menunggu { background: #FEF3C7; color: #92400E; }
.badge-dibayar  { background: #DBEAFE; color: #1E40AF; }
.badge-diproses { background: #E0E7FF; color: #3730A3; }
.badge-dikirim  { background: #D1FAE5; color: #065F46; }
.badge-selesai  { background: #D1FAE5; color: #065F46; }
.badge-dibatalkan { background: #FEE2E2; color: #991B1B; }

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}
.divider-gold {
  border-color: var(--gold-soft);
}

/* ── STAR RATING ── */
.bintang { color: var(--gold); font-size: 0.9rem; }

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-muted);
}
.empty-state-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { color: var(--ink-light); margin-bottom: 8px; font-size: 1.1rem; }

/* ── FOOTER ── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: white;
  margin-bottom: 12px;
}
.footer-brand span { color: var(--gold); }
.footer-desc { font-size: 0.85rem; line-height: 1.8; }
.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img-wrap { display: none; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .navbar-nav { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.text-muted { color: var(--ink-muted); }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.fw-600 { font-weight: 600; }
.w-100 { width: 100%; }