@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Quicksand:wght@600;700&display=swap');

/* =========================================================
   RARA MARKET — Japanese Kawaii (pastel, bersih, profesional)
   ========================================================= */
:root {
  /* Palet utama */
  --milk-pink: #FFF5F7;
  --sakura-pink: #F6DCEB;
  --lavender: #DCCBFF;
  --baby-blue: #A9C9FF;
  --soft-white: #FFFFFF;
  --dark-plum: #51465F;

  /* Turunan (untuk teks & garis agar kontras tetap nyaman dibaca) */
  --plum-soft: #6B5F7C;
  --plum-muted: #7B708C;
  --line: rgba(81, 70, 95, .12);
  --line-strong: rgba(81, 70, 95, .22);
  --lavender-deep: #7B5FC9;
  --focus-ring: rgba(169, 201, 255, .65);

  /* Status (latar pastel + teks gelap) */
  --st-pending-bg: #FFF0C9;   --st-pending-fg: #7A5A00;
  --st-paid-bg: #DDE9FF;      --st-paid-fg: #2F4E86;
  --st-proc-bg: #EADFFF;      --st-proc-fg: #5B3FA0;
  --st-deliv-bg: #D8F1FA;     --st-deliv-fg: #1E6A85;
  --st-done-bg: #D9F4E3;      --st-done-fg: #1F6B45;
  --st-cancel-bg: #FFE0E3;    --st-cancel-fg: #A33A4D;
  --success: #1F6B45;
  --danger: #A33A4D;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;

  /* Alias nama lama (dipakai oleh style inline di JS/HTML) */
  --text-primary: var(--dark-plum);
  --text-secondary: var(--plum-soft);
  --text-muted: var(--plum-muted);
  --border-glow: var(--line-strong);
  --shadow-glow: 0 6px 18px rgba(81, 70, 95, .10);

  --font-head: 'Quicksand', 'Nunito', ui-rounded, 'Hiragino Maru Gothic ProN', system-ui, sans-serif;
  --font-body: 'Nunito', ui-rounded, 'Hiragino Maru Gothic ProN', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; max-width: 100%; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  background-color: var(--milk-pink);
  background-image: radial-gradient(rgba(220, 203, 255, .45) 1.4px, transparent 1.4px);
  background-size: 28px 28px;
  color: var(--dark-plum);
  max-width: 100%;
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; color: inherit; }
input, textarea, select { font-family: inherit; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.25; overflow-wrap: anywhere; }
p, td, th, label, span { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--baby-blue); outline-offset: 2px; }
[hidden] { display: none !important; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- Kartu (nama class lama .glass dipertahankan) ---------- */
.glass {
  background: var(--soft-white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 0 rgba(81, 70, 95, .06);
}

/* ---------- Ornamen kawaii (SVG sprite di index.html) ---------- */
.deco { position: absolute; pointer-events: none; fill: currentColor; }
.deco.d-star  { color: var(--baby-blue); }
.deco.d-spark { color: var(--lavender); }
.deco.d-sakura { color: var(--sakura-pink); }
.deco.d-cloud { color: #fff; stroke: var(--line-strong); stroke-width: .8; }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.82) rotate(12deg); opacity: .7; } }
.twinkle { animation: twinkle 3.6s ease-in-out infinite; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1.5px solid var(--line);
  padding-top: env(safe-area-inset-top, 0);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.navbar-logo { display: flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--dark-plum); min-width: 0; }
.navbar-logo .brand-logo { height: 38px; width: auto; max-width: 150px; object-fit: contain; flex-shrink: 0; }
.navbar-logo .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.navbar-logo .logo-dot { /* bintang 4 sudut kecil */
  width: 14px; height: 14px; flex-shrink: 0; background: var(--baby-blue);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.navbar-logo .brand-logo:not([hidden]) ~ .logo-dot { display: none; }
.navbar-menu { display: flex; align-items: center; gap: 26px; }
.navbar-menu a { font-size: .92rem; font-weight: 700; color: var(--plum-soft); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.navbar-menu a:hover { color: var(--dark-plum); border-bottom-color: var(--sakura-pink); }
.navbar-menu a.btn-wa-nav {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 12px;
  background: #D4F1E0; color: var(--st-done-fg); border: 1.5px solid #A9DDBF; font-weight: 800; font-size: .86rem;
}
.navbar-menu a.btn-wa-nav:hover { background: #C2EBD3; border-color: #A9DDBF; }
.navbar-toggle {
  display: none; background: var(--sakura-pink); color: var(--dark-plum); font-size: 1.3rem;
  width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; line-height: 1;
}

/* ---------- Tombol ---------- */
.btn {
  padding: 12px 22px; min-height: 44px; border-radius: 14px; font-weight: 800; font-size: .94rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease; text-align: center;
}
.btn-primary { background: var(--dark-plum); color: #fff; border: 2px solid var(--dark-plum); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--lavender); }
.btn-primary:active { transform: translateY(0); box-shadow: none; }
.btn-ghost { background: var(--soft-white); color: var(--dark-plum); border: 2px solid var(--dark-plum); }
.btn-ghost:hover { background: var(--sakura-pink); transform: translateY(-2px); }
.btn:disabled, .btn.is-loading { opacity: .6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn.is-loading::before {
  content: ''; width: 15px; height: 15px; border-radius: 50%; border: 2.5px solid currentColor; border-top-color: transparent;
  animation: spin .7s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 48px; position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; position: relative; }
.hero-text { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 10px;
  background: var(--sakura-pink); border: 1.5px solid var(--line-strong);
  font-size: .8rem; color: var(--dark-plum); font-weight: 800; margin-bottom: 18px;
}
.hero-badge .pulse { width: 12px; height: 12px; background: var(--lavender-deep); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.2rem); font-weight: 700; margin-bottom: 10px; color: var(--dark-plum); }
.hero h1 span { background: linear-gradient(transparent 62%, var(--lavender) 62%); padding: 0 4px; }
.hero .hero-sub { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.05rem, 2.6vw, 1.35rem); color: var(--lavender-deep); margin-bottom: 12px; }
.hero p.hero-desc { color: var(--plum-soft); font-size: 1rem; max-width: 470px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.mascot-orb {
  position: relative; width: min(320px, 78vw); aspect-ratio: 1; border-radius: 50%;
  background: var(--sakura-pink); border: 2px dashed var(--line-strong);
  display: flex; align-items: center; justify-content: center;
}
.mascot-orb::before { content: ''; position: absolute; inset: 16px; border-radius: 50%; background: rgba(220, 203, 255, .45); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.mascot-svg { position: relative; width: 76%; height: auto; animation: bob 5s ease-in-out infinite; }
.hero-visual .deco.d1 { width: 30px; height: 30px; top: 6%; right: 8%; }
.hero-visual .deco.d2 { width: 20px; height: 20px; bottom: 12%; left: 2%; }
.hero-visual .deco.d3 { width: 28px; height: 28px; top: 24%; left: 0; }
.hero-visual .deco.d4 { width: 76px; height: 44px; bottom: 2%; right: 0; }
.hero-visual .deco.d5 { width: 18px; height: 18px; top: 2%; left: 22%; }

/* Banner hero (dikelola admin) menggantikan maskot bila ada */
.hero-banner { width: 100%; max-width: 480px; position: relative; z-index: 1; }
.hb-frame { border: 2px solid var(--dark-plum); border-radius: 22px; overflow: hidden; background: var(--soft-white); }
.hb-slide { display: none; }
.hb-slide.active { display: block; }
.hb-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--sakura-pink); }
.hb-caption { padding: 14px 16px 16px; border-top: 2px solid var(--dark-plum); }
.hb-caption h3 { font-size: 1.1rem; }
.hb-caption p { color: var(--plum-soft); font-size: .88rem; margin-top: 4px; }
.hb-caption .btn { margin-top: 10px; padding: 9px 16px; min-height: 40px; font-size: .86rem; }
.hb-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.hb-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--lavender); border: 1.5px solid var(--dark-plum); padding: 0; position: relative; }
.hb-dot::after { content: ''; position: absolute; inset: -16px; } /* area sentuh lebih besar */
.hb-dot.active { background: var(--dark-plum); }

/* ---------- Promo banner ---------- */
.promo-section { padding: 8px 0 24px; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.promo-card { overflow: hidden; display: flex; flex-direction: column; }
.promo-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sakura-pink); border-bottom: 1.5px solid var(--line); }
.promo-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.promo-body h3 { font-size: 1.02rem; }
.promo-body p { color: var(--plum-soft); font-size: .86rem; flex: 1; }
.promo-body .btn { margin-top: 10px; align-self: flex-start; padding: 8px 16px; min-height: 40px; font-size: .84rem; }

/* ---------- Section ---------- */
.section { padding: 56px 0; }
.section-head { text-align: center; max-width: 560px; margin: 0 auto 36px; }
.section-head .tag { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lavender-deep); margin-bottom: 8px; }
.section-head .tag::before, .section-head .tag::after { content: '\2726'; margin: 0 8px; color: var(--baby-blue); }
.section-head h2 { font-size: clamp(1.45rem, 3.4vw, 2rem); margin-bottom: 8px; }
.section-head p { color: var(--plum-soft); font-size: .95rem; }

/* ---------- Pencarian & filter katalog ---------- */
.catalog-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; margin-bottom: 18px; }
.catalog-tools input[type="search"], .catalog-tools select {
  min-height: 44px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line-strong);
  color: var(--dark-plum); font-size: .92rem; outline: none; max-width: 100%;
}
.catalog-tools input[type="search"] { flex: 1 1 220px; max-width: 340px; }
.catalog-tools input:focus, .catalog-tools select:focus { border-color: var(--lavender-deep); box-shadow: 0 0 0 3px var(--focus-ring); }
.catalog-check { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .88rem; font-weight: 700; color: var(--plum-soft); cursor: pointer; }
.catalog-check input { width: 20px; height: 20px; accent-color: var(--dark-plum); }

/* ---------- Kategori ---------- */
.category-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.category-chip {
  padding: 9px 18px; min-height: 40px; border-radius: 999px; font-size: .86rem; font-weight: 800;
  background: var(--soft-white); border: 1.5px solid var(--line-strong); color: var(--plum-soft); transition: all .18s;
}
.category-chip:hover { background: var(--sakura-pink); color: var(--dark-plum); }
.category-chip.active { background: var(--dark-plum); color: #fff; border-color: var(--dark-plum); }

/* ---------- Produk ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product-card { padding: 14px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.product-img {
  width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden; background: var(--sakura-pink);
  display: flex; align-items: center; justify-content: center; color: var(--dark-plum); font-family: var(--font-head); font-size: 2.2rem; font-weight: 700;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-cat { font-size: .74rem; font-weight: 800; color: var(--lavender-deep); letter-spacing: .04em; text-transform: uppercase; }
.product-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 8px; text-transform: uppercase; letter-spacing: .03em; }
.badge-sewa { background: var(--st-proc-bg); color: var(--st-proc-fg); }
.badge-jual { background: var(--st-paid-bg); color: var(--st-paid-fg); }
.badge-tersedia { background: var(--st-done-bg); color: var(--st-done-fg); }
.badge-habis { background: var(--st-cancel-bg); color: var(--st-cancel-fg); }
.product-card h3 { font-size: 1.04rem; font-weight: 700; }
.product-card .desc { color: var(--plum-soft); font-size: .86rem; flex: 1; }
.product-price { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: var(--dark-plum); }
.product-price small { font-family: var(--font-body); font-size: .72rem; color: var(--plum-muted); font-weight: 600; }
.stock-text { font-size: .78rem; color: var(--st-done-fg); font-weight: 700; }
.stock-text.low { color: var(--st-pending-fg); }
.stock-text.out { color: var(--st-cancel-fg); }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn { flex: 1; padding: 10px; font-size: .84rem; }
.btn-detail { background: var(--soft-white); border: 2px solid var(--line-strong); color: var(--dark-plum); }
.btn-detail:hover { background: var(--sakura-pink); }
.btn-order { background: var(--dark-plum); color: #fff; border: 2px solid var(--dark-plum); }
.btn-order:hover { transform: translateY(-2px); box-shadow: 0 3px 0 var(--lavender); }
.btn-order:disabled, .btn-order.disabled { background: #EDE8F0; color: var(--plum-muted); border-color: #EDE8F0; cursor: not-allowed; box-shadow: none; transform: none; }
.empty-state { text-align: center; color: var(--plum-muted); padding: 50px 0; grid-column: 1 / -1; }

/* ---------- Keunggulan ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.feature-card { padding: 22px; }
.feature-icon { width: 46px; height: 46px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--lavender); margin-bottom: 12px; color: var(--dark-plum); }
.feature-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card:nth-child(2) .feature-icon { background: var(--sakura-pink); }
.feature-card:nth-child(3) .feature-icon { background: var(--baby-blue); }
.feature-card:nth-child(4) .feature-icon { background: #D4F1E0; }
.feature-card h4 { font-weight: 700; margin-bottom: 4px; }
.feature-card p { color: var(--plum-soft); font-size: .88rem; }

/* ---------- Langkah ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.step-card { padding: 20px 16px; text-align: center; }
.step-num {
  width: 38px; height: 38px; border-radius: 12px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; background: var(--sakura-pink); color: var(--dark-plum); border: 1.5px solid var(--line-strong);
}
.step-card h4 { font-size: .95rem; margin-bottom: 4px; }
.step-card p { font-size: .82rem; color: var(--plum-soft); }

/* ---------- Testimoni ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.testi-card { padding: 20px; }
.testi-stars { color: #C79200; margin-bottom: 8px; font-size: .9rem; letter-spacing: 2px; }
.testi-card p { color: var(--plum-soft); font-size: .9rem; margin-bottom: 12px; }
.testi-author { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: .88rem; }
.testi-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--lavender); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-question { width: 100%; text-align: left; padding: 16px 20px; min-height: 52px; background: none; color: var(--dark-plum); font-weight: 800; font-size: .95rem; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-question .icon { transition: transform .22s ease; color: var(--lavender-deep); font-size: 1.3rem; line-height: 1; flex-shrink: 0; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--plum-soft); font-size: .9rem; padding: 0 20px; }
.faq-item.open .faq-answer { max-height: 400px; padding: 0 20px 18px; }

/* ---------- Footer ---------- */
.footer { background: rgba(246, 220, 235, .55); border-top: 1.5px solid var(--line-strong); padding: 44px 0 22px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; margin-bottom: 26px; }
.footer-brand .navbar-logo { margin-bottom: 10px; }
.footer-brand p { color: var(--plum-soft); font-size: .88rem; max-width: 300px; }
.footer-col h5 { font-size: .88rem; margin-bottom: 12px; }
.footer-col a, .footer-col p { color: var(--plum-soft); font-size: .86rem; display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--dark-plum); text-decoration: underline; text-decoration-color: var(--lavender-deep); }
.footer-bottom { text-align: center; color: var(--plum-muted); font-size: .8rem; padding-top: 18px; border-top: 1.5px dashed var(--line-strong); }

/* ---------- WhatsApp mengambang ---------- */
.wa-float {
  position: fixed; right: max(18px, env(safe-area-inset-right, 0)); bottom: max(18px, env(safe-area-inset-bottom, 0)); z-index: 200;
  width: 54px; height: 54px; border-radius: 50%; background: #D4F1E0; border: 2px solid var(--dark-plum);
  display: flex; align-items: center; justify-content: center; color: var(--dark-plum); transition: transform .18s;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(81, 70, 95, .45); display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-overlay.active { display: flex; }
.modal-box { width: 100%; max-width: 460px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; padding: 26px; position: relative; -webkit-overflow-scrolling: touch; }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--sakura-pink); width: 40px; height: 40px; border-radius: 12px; color: var(--dark-plum); font-size: 1rem; z-index: 2; }
.modal-close:hover { background: var(--lavender); }
.modal-box h3 { font-size: 1.15rem; margin-bottom: 16px; padding-right: 44px; }

/* ---------- Form ---------- */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .82rem; color: var(--plum-soft); margin-bottom: 6px; font-weight: 800; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; min-height: 46px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line-strong);
  color: var(--dark-plum); font-size: .94rem; outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--lavender-deep); box-shadow: 0 0 0 3px var(--focus-ring); }
.form-group input[readonly] { background: var(--milk-pink); }
.form-group input[type="file"] { padding: 9px 12px; font-size: .86rem; }
.form-group textarea { resize: vertical; min-height: 76px; }
.form-hint { font-size: .76rem; color: var(--plum-muted); margin-top: 5px; }
.order-summary { background: var(--milk-pink); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px; font-size: .88rem; }
.order-summary .row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: var(--plum-soft); }
.order-summary .row span:last-child { text-align: right; }
.order-summary .row.total { color: var(--dark-plum); font-weight: 800; font-size: 1.05rem; margin: 8px 0 0; padding-top: 8px; border-top: 1.5px dashed var(--line-strong); }
.form-error { color: var(--st-cancel-fg); background: var(--st-cancel-bg); border-radius: var(--radius-sm); padding: 9px 12px; font-size: .84rem; font-weight: 700; margin-bottom: 12px; display: none; }
.form-error.active { display: block; }
.form-success { color: var(--st-done-fg); background: var(--st-done-bg); border-radius: var(--radius-sm); padding: 9px 12px; font-size: .84rem; font-weight: 700; margin-bottom: 12px; display: none; }
.form-success.active { display: block; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; top: calc(14px + env(safe-area-inset-top, 0)); right: 14px; z-index: 400; max-width: calc(100% - 28px);
  padding: 12px 18px; border-radius: 14px; font-size: .88rem; font-weight: 800; background: var(--dark-plum); color: #fff;
  transform: translateY(-160%); transition: transform .28s ease;
}
.toast.show { transform: translateY(0); }
.toast.error { background: var(--st-cancel-fg); }

/* ---------- Responsif ---------- */
@media (max-width: 860px) {
  .hero { padding: 36px 0 32px; }
  .hero .container { grid-template-columns: 1fr; text-align: center; gap: 28px; }
  .hero p.hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .catalog-tools input[type="search"], .catalog-tools select { font-size: 16px; flex: 1 1 100%; max-width: none; }
  .navbar-menu {
    position: fixed; top: calc(66px + env(safe-area-inset-top, 0)); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 14px 20px 20px; border-bottom: 1.5px solid var(--line-strong);
    transform: translateY(-130%); transition: transform .25s ease; visibility: hidden; max-height: calc(100vh - 70px); overflow-y: auto;
  }
  .navbar-menu.open { transform: translateY(0); visibility: visible; }
  .navbar-menu a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .navbar-menu a.btn-wa-nav { justify-content: center; margin-top: 8px; border: 1.5px solid #A9DDBF; padding: 12px; }
  .navbar-toggle { display: inline-flex; }
  .form-group input, .form-group textarea, .form-group select { font-size: 16px; } /* cegah auto-zoom iOS */
}
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .section { padding: 40px 0; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card { padding: 10px; }
  .product-card h3 { font-size: .94rem; }
  .product-card .desc { font-size: .8rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .product-price { font-size: 1.05rem; }
  .product-actions { flex-direction: column; }
  .modal-box { padding: 22px 18px; }
  .hero-actions .btn { flex: 1; }
}
@media (max-width: 340px) { .product-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Kode promo ---------- */
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.promo-row .btn { padding: 10px 18px; }
.form-hint.ok { color: var(--st-done-fg); font-weight: 700; }
.form-hint.bad { color: var(--st-cancel-fg); font-weight: 700; }


/* =========================================================
   v8 — wishlist, rating produk, ulasan di detail produk
   ========================================================= */
.product-img { position: relative; }
.wish-btn {
  position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line-strong);
  background: rgba(255, 255, 255, .92); color: var(--dark-plum); font-size: 1.25rem; line-height: 1; cursor: pointer; z-index: 2;
  display: grid; place-items: center; padding: 0; transition: transform .15s ease, background .15s ease;
}
.wish-btn:hover { transform: scale(1.08); background: var(--sakura-pink); }
.wish-btn.on, .wish-full.on { color: #C2415A; }
.wish-full.on { border-color: #C2415A; }
.rating-row { font-size: .8rem; color: var(--plum-soft); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.rating-row.muted, p.muted { color: var(--plum-muted); font-size: .8rem; }
.stars { color: #E8A317; letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #D9D0E3; }
.reviews-box { margin-top: 20px; padding-top: 16px; border-top: 1.5px dashed var(--line-strong); }
.reviews-title { font-family: var(--font-head); font-size: 1.02rem; margin-bottom: 8px; }
.rating-big { font-size: .95rem; margin-bottom: 8px; }
.rating-big span { color: var(--plum-muted); font-size: .84rem; }
.rating-dist { display: grid; gap: 4px; margin-bottom: 12px; font-size: .74rem; color: var(--plum-soft); }
.rating-dist > div { display: grid; grid-template-columns: 26px 1fr 26px; gap: 8px; align-items: center; }
.rating-dist i { display: block; height: 7px; border-radius: 6px; background: var(--line); position: relative; overflow: hidden; }
.rating-dist i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: #E8A317; border-radius: 6px; }
.review-list { display: grid; gap: 10px; margin-top: 8px; }
.review-item { background: var(--milk-pink); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .86rem; }
.review-item small { color: var(--plum-muted); margin-left: 6px; }
.review-item p { margin-top: 4px; color: var(--plum-soft); overflow-wrap: anywhere; }
.review-write { background: var(--milk-pink); border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 12px; margin: 10px 0; display: grid; gap: 8px; font-size: .86rem; }
.review-write textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line-strong); font: inherit; min-height: 70px; resize: vertical; }
.star-input { display: flex; gap: 4px; }
.star-input button { background: none; border: 0; font-size: 1.9rem; line-height: 1; cursor: pointer; color: #D9D0E3; padding: 2px 4px; min-width: 40px; min-height: 44px; }
.star-input button.on { color: #E8A317; }
