/* =========================================================
   LIV Undangan — style.css
   Palet: olive green + krem + aksen gold, font sans-serif bersih
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --cream: #F7F2EA;
  --cream-soft: #FBF8F3;
  --navy: #4B5320;
  --navy-deep: #333D1D;
  --gold: #B08D57;
  --gold-soft: #D9C7A3;
  --ink: #2A2620;
  --ink-muted: #6B6459;
  --white: #FFFFFF;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(75, 83, 32, 0.10);
  --max-width: 1200px;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-soft);
  line-height: 1.5;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

a { text-decoration: none; color: inherit; }

/* ---------- Top bar ---------- */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  padding: 26px 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.5px;
}
.nav-links .btn { margin-left: 8px; }

/* ---------- Dropdown "Koleksi" (desktop, hover) ---------- */
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; gap: 4px; }
.nav-caret { width: 12px; height: 12px; transition: transform 0.2s ease; }
.nav-item:hover .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  /* padding-top (bukan gap/margin) supaya area ini tetap bagian dari nav-item yang
     sedang di-hover -- kalau pakai gap/top:calc(100% + Npx), mouse akan "keluar" dulu
     saat lewat area kosong itu dan dropdown keburu tertutup sebelum sampai ke menunya. */
  padding-top: 14px;
  min-width: 220px;
  z-index: 30;
}
.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown { display: block; }
.nav-dropdown-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
}
.nav-dropdown a {
  display: block;
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.2px;
  padding: 10px 20px;
  white-space: nowrap;
}
.nav-dropdown a:hover { background: var(--cream); color: var(--navy); }

/* ---------- Dropdown "Koleksi" (mobile, tap accordion) ---------- */
.mobile-nav-group { border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-nav-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.3px;
  padding: 13px 32px;
  background: none;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
}
.mobile-nav-toggle .nav-caret { transition: transform 0.2s ease; }
.mobile-nav-toggle.is-open .nav-caret { transform: rotate(180deg); }
.mobile-submenu { display: none; background: rgba(0,0,0,0.12); }
.mobile-submenu.is-open { display: block; }
.mobile-submenu a { padding: 12px 32px 12px 44px; font-size: 13.5px; border-top: 1px solid rgba(255,255,255,0.08); }

.topbar-solid {
  position: relative;
  background: var(--navy);
  padding: 18px 0;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px; height: 30px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hamburger-btn span {
  display: block;
  width: 100%; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger-btn.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.is-open span:nth-child(2) { opacity: 0; }
.hamburger-btn.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--navy);
  padding: 6px 0 22px;
  z-index: 25;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  color: var(--white);
  font-size: 14px;
  letter-spacing: 0.3px;
  padding: 13px 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav a.btn {
  margin: 14px 32px 0;
  text-align: center;
  border-top: none;
  padding: 12px 26px;
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-gold { background: var(--gold); color: var(--white); }
.btn-outline { border: 1px solid var(--white); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn:hover { opacity: 0.88; }

/* ---------- Hero slider ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s ease;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(51,61,29,0.55) 0%, rgba(51,61,29,0.15) 55%, rgba(51,61,29,0.35) 100%);
}
.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  z-index: 2;
  padding-bottom: 64px;
}
.hero-content .container {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  gap: 24px;
}
.hero-text-right {
  text-align: right;
  color: var(--white);
  max-width: 460px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 14px;
  white-space: pre-line;
}
.hero-subtitle {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin: 0 0 22px;
}
.hero-cta { text-align: right; }

.hero-nav {
  position: absolute;
  bottom: 24px; left: 0; right: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  z-index: 3;
}
.hero-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.hero-arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.05);
}
.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  padding: 0;
}
.hero-dot.is-active { background: var(--gold); width: 22px; border-radius: 4px; }

@media (max-width: 600px) {
  .hero-arrow { width: 34px; height: 34px; }
  .hero-nav { gap: 10px; }
}

/* ---------- Section: product carousels ---------- */
.section {
  padding: 24px 0 0;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}
.section-header h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin: 0;
}
.section-header .view-all {
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  white-space: nowrap;
}

.carousel-wrap { position: relative; }
.carousel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.carousel-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid #E6DCC8;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2;
}
.carousel-arrow.prev { left: -17px; }
.carousel-arrow.next { right: -17px; }

.product-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #EFE7D6;
  transition: box-shadow 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow); }
.product-thumb {
  position: relative;
  aspect-ratio: 1/1;
  background: #EDE6D8;
  overflow: hidden;
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.product-thumb img.is-loaded { opacity: 1; }
.product-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 3px;
  letter-spacing: 0.3px;
}
.product-info { padding: 12px 14px 16px; }
.product-info .name {
  font-size: 13.5px;
  font-weight: 500;
  margin: 0 0 6px;
  line-height: 1.35;
  min-height: 36px;
}
.product-info .price-note {
  font-size: 11px;
  color: var(--ink-muted);
  margin: 0 0 2px;
}
.product-info .price {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.btn-detail {
  display: block;
  text-align: center;
  margin-top: 12px;
  padding: 9px 10px;
  background: var(--navy);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: 4px;
  transition: background 0.2s ease;
}
.product-card:hover .btn-detail { background: var(--navy-deep); }

/* ---------- Grid produk (halaman kategori / koleksi) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
.category-hero {
  background: var(--navy);
  color: var(--white);
  padding: 34px 0;
  margin-bottom: 36px;
}
.category-hero .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.category-hero h1 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin: 0; }
.category-hero .breadcrumb { font-size: 12px; color: rgba(255,255,255,0.6); }
.category-hero .breadcrumb a { color: rgba(255,255,255,0.85); }

/* ---------- Toolbar Koleksi: search + filter kategori ---------- */
.koleksi-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.search-box {
  position: relative;
  flex: 1 1 260px;
  max-width: 320px;
}
.search-box svg {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  width: 16px; height: 16px;
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1px solid #E6DCC8;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--white);
}
.search-box input:focus { outline: none; border-color: var(--gold); }
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 2 1 auto;
}
.filter-chip {
  border: 1px solid #E6DCC8;
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.filter-chip span { color: var(--ink-muted); font-weight: 400; }
.filter-chip:hover { border-color: var(--gold); }
.filter-chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter-chip.is-active span { color: rgba(255,255,255,0.7); }

/* ---------- Halaman Detail Produk ---------- */
.breadcrumb-line { font-size: 12px; color: var(--ink-muted); margin-bottom: 20px; }
.breadcrumb-line a { color: var(--ink-muted); }

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 44px;
  align-items: start;
  padding-bottom: 60px;
}
.product-detail-image {
  position: sticky;
  top: 20px;
}
.product-gallery {
  border-radius: var(--radius);
  overflow: hidden;
  background: #EDE6D8;
}
.product-gallery img { width: 100%; display: block; aspect-ratio: 1/1; object-fit: cover; }

.product-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.gallery-thumb {
  width: 68px;
  height: 68px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  background: #EDE6D8;
  cursor: pointer;
  flex-shrink: 0;
}
.gallery-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.gallery-thumb:hover { border-color: var(--gold-soft); }
.gallery-thumb.is-active { border-color: var(--gold); }

.product-detail-info h1 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 14px;
}
.spec-block {
  display: flex; flex-direction: column; gap: 4px;
  font-size: 13px; color: var(--ink-muted);
  margin-bottom: 14px;
}
.spec-block strong { color: var(--ink); font-weight: 500; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.spec-chip {
  font-size: 11.5px; padding: 4px 10px;
  background: var(--cream); border: 1px solid #E6DCC8; border-radius: 20px;
  color: var(--ink-muted);
}
.product-desc { font-size: 13.5px; color: var(--ink-muted); margin-bottom: 24px; }

.order-step .form-row { margin-bottom: 18px; }
.order-step label { display: block; font-size: 12.5px; font-weight: 500; margin-bottom: 7px; }
.order-step input[type="text"],
.order-step input[type="number"],
.order-step textarea,
.order-select {
  width: 100%; padding: 11px 13px;
  border: 1px solid #E6DCC8; border-radius: 4px;
  font-family: inherit; font-size: 13.5px; background: #fff;
}
.order-step textarea { resize: vertical; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.variant-card {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #E6DCC8; border-radius: 4px;
  padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
  font-size: 13.5px;
}
.variant-card:has(input:checked) { border-color: var(--navy); background: #F3F1EA; }
.variant-card .variant-name { flex: 1; }
.variant-card .variant-price { color: var(--gold); font-size: 12px; font-weight: 500; }

.addon-check {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; font-size: 13px; border-bottom: 1px solid #F0EAE0;
}
.addon-check .addon-name { flex: 1; }
.addon-check .addon-price { color: var(--gold); font-size: 12px; font-weight: 500; }

.total-box {
  background: var(--navy); color: #fff;
  border-radius: var(--radius);
  padding: 18px 20px; margin: 22px 0 16px;
}
.total-label { font-size: 11.5px; color: rgba(255,255,255,0.65); margin-bottom: 4px; }
.total-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.total-note { font-size: 10.5px; color: rgba(255,255,255,0.5); margin-top: 6px; }

.btn-block { width: 100%; text-align: center; border: none; cursor: pointer; font-family: inherit; }
.btn-back-link {
  display: block; margin: 12px auto 0; background: none; border: none;
  color: var(--ink-muted); font-size: 12.5px; cursor: pointer; font-family: inherit;
}

.order-recap {
  background: var(--cream); border: 1px solid #E6DCC8; border-radius: 4px;
  padding: 14px 16px; margin-bottom: 20px; font-size: 13px; line-height: 1.7;
}
.form-section-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  margin: 26px 0 14px;
  padding-top: 14px;
  border-top: 1px solid #EFE7D6;
}
.form-section-title:first-of-type { border-top: none; padding-top: 0; }

@media (max-width: 860px) {
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail-image { position: static; }
  .form-row-split { grid-template-columns: 1fr; }
}

.not-found-block { text-align: center; padding: 80px 20px; }
.not-found-block h1 { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.not-found-block p { color: var(--ink-muted); margin-bottom: 24px; }

/* ---------- Cetak Apa Hari Ini (quick category grid) ---------- */
.section-alt { background: var(--cream); padding: 70px 0; margin-top: 40px; }
.section-title-center { text-align: center; margin-bottom: 40px; }
.section-title-center .kicker {
  font-size: 12px; letter-spacing: 3px; color: var(--gold); margin-bottom: 10px;
}
.section-title-center h3 {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 10px;
}
.section-title-center p { color: var(--ink-muted); font-size: 14px; margin: 0; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.quick-card {
  background: var(--white);
  border: 1px solid #EFE7D6;
  border-radius: var(--radius);
  padding: 22px 10px;
  text-align: center;
}
.quick-card .icon { color: var(--gold); margin-bottom: 10px; }
.quick-card .label { font-size: 12.5px; font-weight: 500; }
.quick-card .count { font-size: 11px; color: var(--ink-muted); margin-top: 3px; }

/* ---------- 5-step process ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.step-card {
  background: var(--white);
  border: 1px solid #EFE7D6;
  border-radius: var(--radius);
  padding: 22px 16px;
  position: relative;
}
.step-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.step-card .title { font-size: 13.5px; font-weight: 600; margin: 0 0 6px; }
.step-card .desc { font-size: 11.5px; color: var(--ink-muted); margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 44px 40px;
  text-align: center;
  color: var(--white);
  margin: 60px auto 0;
}
.cta-banner h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 10px;
}
.cta-banner p { color: rgba(255,255,255,0.75); font-size: 13.5px; margin: 0 0 22px; }

/* ---------- Footer ---------- */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 26px;
  margin-top: 70px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 30px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h5 { color: var(--white); font-size: 13px; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-bottom {
  padding-top: 22px;
  font-size: 12px;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { height: 100svh; min-height: 460px; }
  .hero-content { padding-bottom: 88px; }
  .hero-content .container { flex-direction: column; align-items: flex-start; gap: 18px; }
  .hero-text-right { text-align: left; max-width: 100%; }
  .hero-cta { text-align: left; }
  .hero-title { font-size: 32px; }
  .nav-links { display: none; }
  .hamburger-btn { display: flex; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding-top: 68px; }
  .section-header { margin-bottom: 18px; }
  .section-header h3 { font-size: 22px; }
  .step-card .title { font-size: 15px; font-weight: 700; color: var(--ink); }
  .step-card .desc { font-size: 13px; color: var(--ink); }
  .step-num { font-size: 14px; }
  .koleksi-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { max-width: 100%; flex: none; }
  .filter-chips { flex: none; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
}
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
