/* Halaman produk Webnikahku — tema sama dengan index.php (maroon & rose gold, Poppins) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

:root {
  --maroon:      #6E1E2B;
  --maroon-deep: #4A121C;
  --maroon-ink:  #2B0E13;
  --rose:        #B7817A;
  --rose-deep:   #96615B;
  --rose-soft:   #E8D3CC;
  --blush:       #F5EBE7;
  --paper:       #FBF8F5;
  --white:       #FFFFFF;
  --ink:         #2A1C1E;
  --muted:       #6F5E5F;
  --line:        #EADDD7;
  --line-dark:   rgba(232, 211, 204, .18);
  --shadow-card: 0 1px 2px rgba(74, 18, 28, .04), 0 12px 32px -14px rgba(74, 18, 28, .22);
  --shadow-hover:0 2px 4px rgba(74, 18, 28, .05), 0 22px 44px -16px rgba(74, 18, 28, .32);
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Tipografi */
.eyebrow { display: inline-block; font-size: 11.5px; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--rose-deep); }
.title { font-weight: 300; line-height: 1.18; letter-spacing: -.02em; color: var(--ink); }
.title strong { font-weight: 500; color: var(--maroon); }
.title em { font-style: italic; font-weight: 300; color: var(--rose-deep); }
.lead { color: var(--muted); font-size: 15.5px; }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 14px; font-weight: 500; padding: 13px 26px; border-radius: 999px; border: 1px solid transparent; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--maroon); color: var(--white); }
.btn-primary:hover { background: var(--maroon-deep); }
.btn-rose { background: var(--rose); color: var(--white); }
.btn-rose:hover { background: var(--rose-deep); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-line:hover { border-color: var(--maroon); color: var(--maroon); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* Strip & navbar */
.strip { background: var(--maroon-deep); color: var(--rose-soft); font-size: 12.5px; text-align: center; padding: 8px 16px; }
.strip strong { color: var(--white); font-weight: 500; }
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(251, 248, 245, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, transform .35s var(--ease); }
.navbar.scrolled { border-bottom-color: var(--line); }
.navbar.nav-hidden { transform: translateY(-100%); }
.nav-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-brand img { height: 38px; width: auto; }
.nav-menu { display: flex; gap: 28px; list-style: none; }
.nav-menu a { font-size: 13.5px; color: var(--muted); transition: color .2s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--maroon); }
.nav-menu a.active { font-weight: 500; }
.nav-auth { display: flex; align-items: center; gap: 18px; }
.nav-login { font-size: 13.5px; font-weight: 500; }
.nav-login:hover { color: var(--maroon); }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; font-size: 19px; }

/* Bagian halaman */
.sec { padding: 96px 0; position: relative; }
.sec-blush { background: var(--blush); }
.sec-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 42px); margin: 14px 0; }

/* Hero halaman produk */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: 64px 0 72px; text-align: center; }
.page-hero::before { content: ''; position: absolute; left: 50%; bottom: -80px; width: min(640px, 92%); height: 420px; transform: translateX(-50%); border: 1px solid var(--rose-soft); border-bottom: 0; border-radius: 999px 999px 0 0; z-index: -1; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 56px); margin: 16px auto 18px; max-width: 760px; }
.page-hero .lead { max-width: 560px; margin: 0 auto 28px; }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--rose-deep); }
.crumbs a:hover { color: var(--maroon); }
.crumbs i { font-size: 9px; align-self: center; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-stats span { font-size: 12.5px; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--muted); }
.hero-stats b { color: var(--maroon); font-weight: 600; }

/* Katalog produk */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 28px 24px 24px; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); scroll-margin-top: 90px; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.product-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--blush); color: var(--maroon); display: grid; place-items: center; font-size: 20px; }
.product-type { font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--rose-deep); }
.product-type.digital { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.product-card h3 { font-size: 19px; font-weight: 500; margin-bottom: 8px; }
.product-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.product-points { list-style: none; display: grid; gap: 6px; margin-bottom: 20px; flex: 1; }
.product-points li { font-size: 13px; display: flex; gap: 9px; }
.product-points i { font-size: 10px; margin-top: 6px; color: var(--rose-deep); }
.product-price { padding-top: 16px; border-top: 1px dashed var(--line); margin-bottom: 16px; font-size: 12.5px; color: var(--muted); }
.product-price b { display: block; font-size: 20px; font-weight: 500; color: var(--maroon); line-height: 1.3; }
.product-card .btn { width: 100%; }

.group-label { display: flex; align-items: center; gap: 14px; margin: 44px 0 18px; font-size: 11.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--rose-deep); }
.group-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.group-label:first-child { margin-top: 0; }

/* Banner bundel */
.bundle { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: center; background: var(--maroon-deep); color: var(--rose-soft); border-radius: var(--radius); padding: 40px; position: relative; overflow: hidden; isolation: isolate; }
.bundle::before { content: ''; position: absolute; right: -40px; bottom: -80px; width: 300px; height: 360px; border: 1px solid rgba(183, 129, 122, .35); border-bottom: 0; border-radius: 999px 999px 0 0; z-index: -1; }
.bundle h2 { font-size: clamp(24px, 3vw, 34px); color: var(--white); margin: 12px 0 10px; }
.bundle h2 strong { color: var(--rose-soft); }
.bundle p { color: rgba(232, 211, 204, .82); }
.bundle .eyebrow { color: var(--rose); }
.bundle-actions { display: flex; flex-direction: column; gap: 10px; }
.bundle .btn-line { background: transparent; color: var(--white); border-color: rgba(232, 211, 204, .4); }
.bundle .btn-line:hover { border-color: var(--white); color: var(--white); }

/* Undangan cetak: filter */
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 13px; color: var(--muted); transition: all .2s; }
.chip:hover { border-color: var(--rose); color: var(--maroon); }
.chip.active { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.sort select { font: inherit; font-size: 13px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }

/* Undangan cetak: kartu item */
.print-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.print-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.print-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.print-media { position: relative; }
.print-media svg { width: 100%; height: auto; }
.print-badge { position: absolute; top: 12px; left: 12px; font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--maroon); color: var(--white); }
.print-sold { position: absolute; top: 12px; right: 12px; font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--maroon-deep); font-weight: 500; }
.print-sold i { color: var(--rose-deep); margin-right: 4px; }
.print-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.print-body h3 { font-size: 17px; font-weight: 500; }
.print-body .desc { font-size: 13px; color: var(--muted); margin: 4px 0 12px; }
.specs { list-style: none; display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.specs li { display: flex; gap: 8px; }
.specs i { width: 14px; text-align: center; color: var(--rose-deep); margin-top: 4px; font-size: 11px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 12px 0; border-top: 1px dashed var(--line); }
.price-row b { font-size: 20px; font-weight: 500; color: var(--maroon); }
.price-row b small { font-size: 12px; font-weight: 400; color: var(--muted); }
.price-row span { font-size: 12px; color: var(--muted); }

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.qty-label { font-size: 12.5px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.qty button { width: 36px; height: 36px; border: 0; background: none; color: var(--maroon); font-size: 13px; }
.qty button:hover { background: var(--blush); }
.qty input { width: 64px; height: 36px; border: 0; text-align: center; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.subtotal { background: var(--paper); border-radius: 12px; padding: 10px 14px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.subtotal .line { display: flex; justify-content: space-between; gap: 10px; }
.subtotal .total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 4px; }
.subtotal .total b { font-size: 17px; font-weight: 600; color: var(--maroon); }
.subtotal .save { color: #1F7A4A; }
.print-body .btn { width: 100%; margin-top: auto; }

/* Tabel harga grosir */
.tier-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-card); }
.tier-table th, .tier-table td { padding: 14px 18px; text-align: left; font-size: 13.5px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tier-table th { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--rose-deep); background: var(--paper); }
.tier-table tr:last-child td { border-bottom: 0; }
.tier-table td b { color: var(--maroon); font-weight: 500; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* Langkah */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: var(--white); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow-card); }
.step-num { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rose); color: var(--maroon); display: grid; place-items: center; font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.step h3 { font-size: 15.5px; font-weight: 500; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border-radius: 12px; box-shadow: var(--shadow-card); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--maroon); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 14px; }

/* CTA */
.cta { background: var(--maroon); color: var(--rose-soft); text-align: center; padding: 88px 0; position: relative; overflow: hidden; isolation: isolate; }
.cta::before { content: ''; position: absolute; left: 50%; top: 40px; width: 600px; height: 600px; margin-left: -300px; border: 1px solid rgba(183, 129, 122, .35); border-radius: 50%; z-index: -1; }
.cta .eyebrow { color: var(--rose); }
.cta h2 { font-size: clamp(26px, 4vw, 44px); color: var(--white); margin: 14px auto 12px; max-width: 680px; }
.cta h2 strong { color: var(--rose-soft); }
.cta p { max-width: 480px; margin: 0 auto 28px; color: rgba(232, 211, 204, .82); }
.cta-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.cta .btn-line { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .4); }

/* Catatan contoh data */
.note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 18px; }

/* Footer */
.footer { background: var(--maroon-ink); color: rgba(232, 211, 204, .7); padding: 72px 0 28px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-brand img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 300px; }
.f-col-title { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); margin-bottom: 16px; }
.f-links { list-style: none; display: grid; gap: 9px; }
.f-links a:hover { color: var(--white); }
.f-links i { width: 18px; color: var(--rose); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: 12.5px; color: rgba(232, 211, 204, .5); }

.mobile-bar { display: none; }

/* Muncul saat scroll */
.js .reveal { opacity: 0; translate: 0 24px; transition: opacity .7s var(--ease), translate .7s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* Responsif */
@media (max-width: 1080px) {
  .product-grid, .print-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { padding-bottom: 68px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-menu, .nav-auth { display: none; }
  .navbar.open .nav-menu, .navbar.open .nav-auth { display: flex; }
  .nav-inner { flex-wrap: wrap; height: auto; min-height: 62px; padding-top: 10px; padding-bottom: 10px; }
  .nav-brand img { height: 34px; }
  .navbar.open .nav-menu { order: 3; width: 100%; flex-direction: column; gap: 0; padding-top: 6px; border-top: 1px solid var(--line); }
  .navbar.open .nav-menu a { display: block; padding: 12px 0; font-size: 15px; color: var(--ink); }
  .navbar.open .nav-auth { order: 4; width: 100%; padding: 8px 0 6px; justify-content: space-between; }
  .sec { padding: 68px 0; }
  .page-hero { padding: 40px 0 52px; }
  .bundle { grid-template-columns: 1fr; padding: 28px 22px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .mobile-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(74, 18, 28, .25); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 6px; }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 4px 0; }
  .mobile-bar a i { font-size: 17px; color: var(--maroon); }
  .mobile-bar a.wa { background: var(--maroon); color: var(--white); border-radius: 12px; }
  .mobile-bar a.wa i { color: var(--white); }
}
@media (max-width: 640px) {
  .product-grid, .print-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar > * { min-width: 0; }
  .chips { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 40px); max-width: calc(100vw); margin: 0 -20px; padding: 2px 20px 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .sort select { width: 100%; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 400px) {
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
}

/* Jumlah kolom katalog mengikuti jumlah produk per grup */
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1080px) { .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .product-grid.cols-4, .product-grid.cols-2 { grid-template-columns: 1fr; } }
