/* ============================================================
   RUMAH BELAJAR KUCING — Kawaii Pastel Theme
   Warna utama: Baby Pink, Cream, Beige, Soft Blue, Peach
   ============================================================ */

:root {
  --pink:      #FFD6E0;
  --pink-soft: #FFF0F4;
  --pink-dark: #FF9EBB;
  --cream:     #FFF6EA;
  --beige:     #F3E5D3;
  --beige-dark:#E5D2BC;
  --blue:      #CDE7F7;
  --blue-soft: #EDF6FD;
  --peach:     #FFD9B8;
  --peach-dark:#F5A05A;
  --white:     #FFFFFF;
  --ink:       #5B4A42;
  --ink-soft:  #8A7A70;
  --green:     #4ECB71;
  --green-dark:#34a85a;
  --radius:    18px;
  --shadow:    0 4px 14px rgba(91, 74, 66, .10);
  --shadow-lg: 0 10px 30px rgba(91, 74, 66, .14);
  --font-head: 'Quicksand', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 18px; }

/* ---------------- HEADER ---------------- */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 246, 234, .92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--beige);
}
.header-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; min-height: 64px;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo-cat { width: 44px; height: 44px; flex-shrink: 0; }
.logo-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.15;
}
.logo-tag { font-size: .68rem; color: var(--ink-soft); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, background .2s;
}
.icon-btn:hover { transform: translateY(-2px) scale(1.06); background: var(--pink-soft); }
.icon-btn svg { width: 20px; height: 20px; fill: var(--ink); }

.btn-wa-header {
  display: none;
  background: var(--green); color: #fff; font-weight: 800; font-size: .85rem;
  padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow);
  align-items: center; gap: 7px; transition: transform .2s, background .2s;
}
.btn-wa-header:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-wa-header svg { width: 17px; height: 17px; fill: #fff; }

.hamburger {
  width: 42px; height: 42px; border-radius: 14px;
  background: var(--white); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span { width: 20px; height: 2.5px; border-radius: 3px; background: var(--ink); transition: .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.main-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border-bottom: 2px solid var(--beige);
  padding: 10px 18px 16px; box-shadow: var(--shadow-lg);
}
.main-nav.open { display: block; }
.main-nav a {
  display: block; padding: 12px 6px; font-weight: 700; font-size: .95rem;
  border-bottom: 1px dashed var(--beige);
}
.main-nav a:hover, .main-nav a.active { color: var(--peach-dark); }
.main-nav a:last-child { border-bottom: none; }

@media (min-width: 900px) {
  .hamburger { display: none; }
  .main-nav {
    display: flex; position: static; background: none; border: none;
    box-shadow: none; padding: 0; gap: 4px; margin-left: auto; margin-right: 8px;
  }
  .main-nav a { border: none; padding: 8px 12px; border-radius: 999px; }
  .main-nav a:hover, .main-nav a.active { background: var(--pink-soft); }
  .btn-wa-header { display: inline-flex; }
  .logo-name { font-size: 1.2rem; }
}

/* ---------------- HERO ---------------- */
.hero {
  background: linear-gradient(160deg, var(--pink-soft) 0%, var(--cream) 45%, var(--blue-soft) 100%);
  padding: 44px 0 56px; overflow: hidden; position: relative;
}
.hero-inner { display: grid; gap: 28px; align-items: center; }
.hero-badge {
  display: inline-block; background: var(--white); color: var(--peach-dark);
  font-weight: 800; font-size: .78rem; padding: 6px 14px; border-radius: 999px;
  box-shadow: var(--shadow); margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-head); font-size: clamp(1.7rem, 6vw, 2.9rem);
  line-height: 1.2; margin-bottom: 14px;
}
.hero h1 .hl { color: var(--peach-dark); }
.hero p { color: var(--ink-soft); font-size: 1.02rem; max-width: 480px; margin-bottom: 22px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; max-width: 420px; margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: .95rem; padding: 13px 24px; border-radius: 999px;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-primary { background: var(--peach-dark); color: #fff; }
.btn-primary:hover { background: #e88f4a; }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: var(--green-dark); }
.btn-outline { background: var(--white); color: var(--ink); }
.btn-outline:hover { background: var(--pink-soft); }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

.sparkle { position: absolute; animation: twinkle 2.4s ease-in-out infinite; }
.sparkle.s1 { top: 8%; left: 6%; }
.sparkle.s2 { top: 18%; right: 8%; animation-delay: .8s; }
.sparkle.s3 { bottom: 12%; left: 12%; animation-delay: 1.5s; }
@keyframes twinkle {
  0%, 100% { opacity: .3; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
  .hero { padding: 64px 0 72px; }
}

/* Section umum */
.section { padding: 48px 0; }
.section-pink { background: var(--pink-soft); }
.section-white { background: var(--white); }
.section-blue { background: var(--blue-soft); }
.section-head { text-align: center; margin-bottom: 30px; }
.section-head .emoji { font-size: 2rem; }
.section-head h2 { font-family: var(--font-head); font-size: clamp(1.35rem, 4.5vw, 1.9rem); margin: 6px 0 4px; }
.section-head p { color: var(--ink-soft); font-size: .95rem; max-width: 520px; margin: 0 auto; }

/* ---------------- KATEGORI ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cat-card {
  background: var(--white); border-radius: var(--radius); padding: 20px 14px;
  box-shadow: var(--shadow); text-align: center; transition: transform .2s, box-shadow .2s;
  border: 2px solid transparent;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--pink); }
.cat-icon {
  width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.cat-card h3 { font-family: var(--font-head); font-size: .95rem; margin-bottom: 4px; }
.cat-card p { font-size: .75rem; color: var(--ink-soft); line-height: 1.45; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .cat-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------------- PRODUK ---------------- */
.toolbar { margin-bottom: 22px; display: grid; gap: 12px; }
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: 999px; padding: 6px 18px;
  box-shadow: var(--shadow); border: 2px solid transparent;
}
.search-box:focus-within { border-color: var(--pink-dark); }
.search-box svg { width: 18px; height: 18px; fill: var(--ink-soft); flex-shrink: 0; }
.search-box input { border: none; outline: none; background: none; flex: 1; font-family: inherit; font-size: .95rem; padding: 9px 0; color: var(--ink); }

.filter-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.filter-pills::-webkit-scrollbar { display: none; }
.pill {
  flex-shrink: 0; padding: 8px 16px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: var(--white); color: var(--ink-soft); box-shadow: var(--shadow); transition: .2s;
}
.pill:hover { color: var(--ink); }
.pill.active { background: var(--peach-dark); color: #fff; }

.sort-select {
  font-family: inherit; font-size: .85rem; font-weight: 700; color: var(--ink);
  background: var(--white); border: none; border-radius: 999px; padding: 10px 16px;
  box-shadow: var(--shadow); outline: none; width: 100%;
}
@media (min-width: 760px) {
  .toolbar { grid-template-columns: 1fr 220px; align-items: center; }
  .filter-pills { grid-column: 1 / -1; }
  .sort-select { width: auto; justify-self: end; }
}

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 760px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.product-img { position: relative; background: var(--pink-soft); aspect-ratio: 1 / 1; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 10px; left: 10px;
  font-size: .65rem; font-weight: 800; letter-spacing: .5px;
  padding: 5px 11px; border-radius: 999px; color: #fff; box-shadow: var(--shadow);
}
.badge-promo { background: var(--pink-dark); }
.badge-laris { background: var(--peach-dark); }
.badge-baru { background: #6BB8E8; }

.product-body { padding: 13px 13px 15px; display: flex; flex-direction: column; flex: 1; }
.product-code { font-size: .68rem; font-weight: 800; color: var(--peach-dark); letter-spacing: .6px; }
.product-name { font-family: var(--font-head); font-size: .92rem; line-height: 1.3; margin: 3px 0 2px; }
.product-course { font-size: .75rem; color: var(--ink-soft); margin-bottom: 8px; }
.price-row { margin-top: auto; margin-bottom: 10px; }
.price-old { font-size: .75rem; color: var(--ink-soft); text-decoration: line-through; }
.price-now { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.price-now.promo { color: #E4577B; }

.card-btns { display: grid; gap: 7px; }
.btn-detail {
  background: var(--blue); color: var(--ink); font-weight: 800; font-size: .8rem;
  padding: 9px 12px; border-radius: 12px; text-align: center; transition: .2s;
}
.btn-detail:hover { background: #b6dcf3; }
.btn-wa-card {
  background: var(--green); color: #fff; font-weight: 800; font-size: .8rem;
  padding: 9px 12px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: .2s;
}
.btn-wa-card:hover { background: var(--green-dark); }
.btn-wa-card svg { width: 15px; height: 15px; fill: #fff; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.empty-state .big { font-size: 3rem; margin-bottom: 10px; }

/* ---------------- DETAIL PRODUK ---------------- */
.detail-grid { display: grid; gap: 26px; }
.detail-gallery { background: var(--white); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.detail-main-img { border-radius: 12px; overflow: hidden; background: var(--pink-soft); }
.detail-main-img img { width: 100%; }
.detail-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.detail-thumbs img {
  width: 56px; height: 56px; object-fit: cover; border-radius: 10px;
  cursor: pointer; border: 2px solid transparent; opacity: .7; transition: .2s;
}
.detail-thumbs img.active, .detail-thumbs img:hover { border-color: var(--peach-dark); opacity: 1; }

.detail-info .product-code { font-size: .8rem; }
.detail-info h1 { font-family: var(--font-head); font-size: clamp(1.3rem, 5vw, 1.8rem); line-height: 1.25; margin: 4px 0 6px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.meta-chip {
  background: var(--white); font-size: .75rem; font-weight: 700; color: var(--ink-soft);
  padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow);
}
.detail-price { background: var(--pink-soft); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; }
.detail-price .price-old { font-size: .85rem; }
.detail-price .price-now { font-size: 1.7rem; }
.detail-price .note { font-size: .72rem; color: var(--ink-soft); margin-top: 2px; }
.detail-desc { color: var(--ink-soft); font-size: .95rem; margin-bottom: 16px; }

.content-box { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 16px; }
.content-box h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 10px; }
.content-box ul { list-style: none; }
.content-box li { padding: 6px 0 6px 28px; position: relative; font-size: .9rem; }
.content-box li::before {
  content: "🐾"; position: absolute; left: 2px; font-size: .85rem;
}
.detail-cta { display: grid; gap: 10px; }
@media (min-width: 860px) {
  .detail-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .detail-cta { grid-template-columns: 1fr 1fr; }
}

/* ---------------- CARA PESAN ---------------- */
.steps-grid { display: grid; gap: 14px; }
.step-card {
  background: var(--white); border-radius: var(--radius); padding: 22px 18px;
  box-shadow: var(--shadow); text-align: center; transition: transform .2s;
}
.step-card:hover { transform: translateY(-4px); }
.step-card img { width: 92px; margin: 0 auto 10px; }
.step-num {
  display: inline-block; width: 28px; height: 28px; border-radius: 50%;
  background: var(--peach); color: var(--ink); font-weight: 800; font-size: .85rem;
  line-height: 28px; margin-bottom: 8px;
}
.step-card h3 { font-family: var(--font-head); font-size: 1rem; margin-bottom: 5px; }
.step-card p { font-size: .82rem; color: var(--ink-soft); }
@media (min-width: 760px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------------- FAQ ---------------- */
.faq-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 18px; background: none; text-align: left;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--ink);
}
.faq-q .arrow { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--pink-soft); display: flex; align-items: center; justify-content: center; transition: transform .25s; font-size: .8rem; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); background: var(--pink); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 18px 16px; font-size: .9rem; color: var(--ink-soft); }

/* ---------------- KONTAK ---------------- */
.contact-card {
  background: linear-gradient(150deg, var(--pink) 0%, var(--peach) 100%);
  border-radius: 24px; padding: 34px 22px; text-align: center; box-shadow: var(--shadow-lg);
}
.contact-card h2 { font-family: var(--font-head); font-size: clamp(1.25rem, 4.5vw, 1.7rem); margin-bottom: 8px; }
.contact-card p { color: #7a5a45; font-size: .95rem; max-width: 480px; margin: 0 auto 20px; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn-social { padding: 12px 20px; font-size: .88rem; }
.btn-ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); color: #fff; }
.btn-tiktok { background: #222; color: #fff; }
.btn-x { background: #111; color: #fff; }

/* ---------------- TENTANG ---------------- */
.about-grid { display: grid; gap: 24px; align-items: center; }
.about-grid img { max-width: 340px; margin: 0 auto; width: 100%; }
.about-grid h2 { font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 10px; }
.about-grid p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 12px; }
.trust-list { display: grid; gap: 8px; margin-top: 14px; }
.trust-list li { list-style: none; background: var(--white); border-radius: 12px; padding: 10px 14px; font-size: .88rem; font-weight: 700; box-shadow: var(--shadow); }
@media (min-width: 820px) { .about-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------- FOOTER ---------------- */
#site-footer { background: var(--beige); margin-top: 30px; }
.footer-inner { padding: 36px 0 20px; }
.footer-grid { display: grid; gap: 24px; }
.footer-brand p { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }
.footer-col h4 { font-family: var(--font-head); font-size: .95rem; margin-bottom: 10px; }
.footer-col a { display: block; font-size: .85rem; color: var(--ink-soft); padding: 4px 0; }
.footer-col a:hover { color: var(--peach-dark); }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-bottom {
  border-top: 1px solid var(--beige-dark); margin-top: 26px; padding-top: 16px;
  text-align: center; font-size: .78rem; color: var(--ink-soft);
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------------- FLOATING WA ---------------- */
#wa-float a {
  position: fixed; bottom: 18px; right: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green); box-shadow: 0 6px 20px rgba(78, 203, 113, .45);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
  animation: floaty 3s ease-in-out infinite;
}
#wa-float a:hover { transform: scale(1.1); }
#wa-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Fade-in saat pindah halaman */
.page-fade { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
