/* BabyNest — Toko Perlengkapan Bayi & Ibu Hamil */
/* Palet: pink lembut #f8bbd0, aksen ungu #7986cb, bg #fff5f9 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink: #f8bbd0;
  --pink-dark: #f48fb1;
  --pink-deep: #e91e8c;
  --purple: #7986cb;
  --purple-dark: #5c6bc0;
  --purple-light: #c5cae9;
  --bg: #fff5f9;
  --bg2: #fce4ec;
  --white: #ffffff;
  --text: #3d2c35;
  --text-light: #7a6070;
  --border: #f0c8d8;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(249,144,185,0.18);
  --shadow-hover: 0 8px 32px rgba(249,144,185,0.32);
}

body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

/* ========== DEMO BAR ========== */
.demo-bar {
  background: var(--purple-dark);
  color: #fff;
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
}
.demo-bar a { color: #ffd6e7; text-decoration: underline; margin: 0 4px; }
.demo-bar a:hover { color: #fff; }

/* ========== HEADER & NAV ========== */
header {
  background: var(--white);
  border-bottom: 2px solid var(--pink);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(248,187,208,0.25);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 42px;
  height: 42px;
}

.logo-text { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.5px; }
.logo-text span { color: var(--purple); }

/* Mobile nav checkbox hack */
#nav-toggle { display: none; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transition: 0.3s;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
}

nav ul li a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
  font-size: 14px;
  border-radius: 30px;
  transition: all 0.2s;
}
nav ul li a:hover,
nav ul li a.active {
  background: var(--pink);
  color: var(--text);
}

.nav-cta a {
  background: var(--purple) !important;
  color: #fff !important;
}
.nav-cta a:hover { background: var(--purple-dark) !important; }

@media (max-width: 700px) {
  .nav-burger { display: flex; }
  nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 2px solid var(--pink);
    padding: 12px 20px 20px;
    box-shadow: var(--shadow);
  }
  nav ul { flex-direction: column; gap: 4px; }
  nav ul li a { border-radius: 10px; }
  #nav-toggle:checked ~ .header-inner nav { display: block; }
}

/* ========== HERO ========== */
.hero {
  background: linear-gradient(135deg, #fff0f5 0%, #f3e5f5 50%, #e8eaf6 100%);
  padding: 60px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(248,187,208,0.4) 0%, transparent 70%);
  top: -80px; right: -80px;
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(121,134,203,0.2) 0%, transparent 70%);
  bottom: -40px; left: -40px;
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--pink);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 30px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--text);
}

.hero h1 em {
  font-style: normal;
  color: var(--purple);
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 18px rgba(121,134,203,0.4);
}
.btn-primary:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(121,134,203,0.5); }

.btn-outline {
  background: transparent;
  color: var(--purple);
  border: 2px solid var(--purple);
}
.btn-outline:hover { background: var(--purple); color: #fff; transform: translateY(-2px); }

.btn-pink {
  background: var(--pink-dark);
  color: #fff;
  box-shadow: 0 4px 18px rgba(244,143,177,0.4);
}
.btn-pink:hover { background: var(--pink-deep); transform: translateY(-2px); }

.btn-sm { padding: 8px 18px; font-size: 13px; }

/* Hero illustration */
.hero-art {
  margin: 40px auto 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-bubble {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  box-shadow: var(--shadow);
}

.bubble-1 { background: #fce4ec; }
.bubble-2 { background: #e8eaf6; }
.bubble-3 { background: #f3e5f5; }
.bubble-4 { background: #e0f7fa; }

/* ========== SECTION ========== */
.section { padding: 60px 20px; }
.section-alt { background: var(--white); }

.container { max-width: 1100px; margin: 0 auto; }

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.section-head p {
  color: var(--text-light);
  font-size: 1rem;
}

.tag {
  display: inline-block;
  background: var(--pink);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 12px;
  border-radius: 30px;
  margin-bottom: 10px;
}

/* ========== PRODUCT CARD ========== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
}

.thumb-1 { background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 100%); }
.thumb-2 { background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%); }
.thumb-3 { background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%); }
.thumb-4 { background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%); }
.thumb-5 { background: linear-gradient(135deg, #fff9c4 0%, #fff176 100%); }
.thumb-6 { background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 100%); }

.badge-new {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--purple);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.badge-sale {
  position: absolute;
  top: 10px; left: 10px;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.product-info {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--purple-dark);
  margin-top: auto;
}

.product-price .price-old {
  font-size: 0.8rem;
  color: var(--text-light);
  text-decoration: line-through;
  font-weight: 400;
  margin-left: 6px;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.product-actions .btn { flex: 1; text-align: center; }

/* ========== KATEGORI GRID ========== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: all 0.25s;
  border: 2px solid transparent;
}

.cat-card:hover {
  border-color: var(--purple);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.cat-icon { font-size: 42px; margin-bottom: 10px; }
.cat-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.cat-count { font-size: 12px; color: var(--text-light); }

/* ========== BANNER / PROMO ========== */
.promo-banner {
  background: linear-gradient(135deg, var(--purple) 0%, #9fa8da 100%);
  border-radius: var(--radius);
  padding: 40px 32px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.promo-banner h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.promo-banner p { opacity: 0.85; margin-bottom: 0; }

/* ========== TESTIMONIAL ========== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.testi-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--pink-dark);
}

.testi-stars { color: #ffb300; font-size: 18px; margin-bottom: 10px; }
.testi-text { font-style: italic; color: var(--text-light); margin-bottom: 14px; line-height: 1.5; }
.testi-author { font-weight: 700; font-size: 14px; }
.testi-meta { font-size: 12px; color: var(--text-light); }

/* ========== FILTER (CSS-only) ========== */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.filter-tabs input[type="radio"] { display: none; }

.filter-tabs label {
  padding: 8px 18px;
  border-radius: 30px;
  border: 2px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  background: var(--white);
  color: var(--text-light);
  transition: all 0.2s;
}

.filter-tabs input[type="radio"]:checked + label {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

/* ========== PRODUCT DETAIL ========== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 700px) {
  .product-detail { grid-template-columns: 1fr; }
}

.product-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-main-img {
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  background: linear-gradient(135deg, #fce4ec 0%, #e8eaf6 100%);
}

.product-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: var(--bg2);
}

.product-thumb-sm {
  width: 64px; height: 64px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: 0.2s;
}

.product-thumb-sm:hover, .product-thumb-sm.active {
  border-color: var(--purple);
}

.thumb-sm-1 { background: #fce4ec; }
.thumb-sm-2 { background: #e8eaf6; }
.thumb-sm-3 { background: #f3e5f5; }

.product-detail-info h1 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}

.detail-price {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--purple-dark);
  margin-bottom: 4px;
}

.detail-price-old {
  font-size: 1rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  font-size: 14px;
}

.stars { color: #ffb300; }
.rating-count { color: var(--text-light); }

.detail-desc {
  color: var(--text-light);
  margin: 16px 0;
  line-height: 1.7;
}

.variant-group { margin: 16px 0; }
.variant-label { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }

.variant-btn {
  padding: 6px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: 0.2s;
}
.variant-btn:hover, .variant-btn.active {
  border-color: var(--purple);
  background: var(--purple-light);
  color: var(--purple-dark);
  font-weight: 700;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.qty-label { font-weight: 700; font-size: 14px; }
.qty-ctrl { display: flex; align-items: center; gap: 0; border: 2px solid var(--border); border-radius: 10px; overflow: hidden; }
.qty-btn { width: 36px; height: 36px; background: var(--bg); border: none; font-size: 18px; cursor: pointer; font-family: inherit; transition: 0.2s; }
.qty-btn:hover { background: var(--pink); }
.qty-num { width: 48px; text-align: center; font-weight: 700; border: none; outline: none; background: transparent; font-family: inherit; font-size: 15px; }

.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.detail-actions .btn { flex: 1; min-width: 140px; text-align: center; }

.detail-spec {
  margin-top: 24px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 16px;
}

.spec-title { font-weight: 700; margin-bottom: 10px; }

.spec-list { list-style: none; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.spec-list li:last-child { border-bottom: none; }
.spec-key { color: var(--text-light); }
.spec-val { font-weight: 600; }

/* ========== FORM ========== */
.form-section {
  max-width: 680px;
  margin: 0 auto;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

@media (max-width: 500px) { .form-card { padding: 24px 18px; } }

.form-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 6px; }
.form-sub { color: var(--text-light); margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }
.form-label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.form-label span { color: #e53935; }

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--purple); background: var(--white); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s;
}
.radio-item:hover { border-color: var(--purple); }
.radio-item input[type="radio"]:checked + .radio-label { font-weight: 700; color: var(--purple-dark); }

.radio-label { font-size: 14px; }
.radio-badge { margin-left: auto; background: var(--pink); padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 700; }

.form-note { font-size: 12px; color: var(--text-light); margin-top: 6px; }

.order-summary {
  background: var(--bg);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}
.order-summary-title { font-weight: 700; margin-bottom: 10px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 4px 0; }
.summary-total { font-weight: 800; font-size: 1.05rem; color: var(--purple-dark); border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }

/* ========== KONTAK ========== */
.kontak-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 700px) { .kontak-grid { grid-template-columns: 1fr; } }

.kontak-info { display: flex; flex-direction: column; gap: 16px; }

.info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow);
}

.info-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.icon-wa { background: #dcf8c6; }
.icon-email { background: var(--purple-light); }
.icon-map { background: #fce4ec; }
.icon-clock { background: #fff9c4; }

.info-content h4 { font-weight: 700; margin-bottom: 4px; }
.info-content p { font-size: 14px; color: var(--text-light); line-height: 1.5; }
.info-content a { color: var(--purple); text-decoration: none; font-weight: 600; }
.info-content a:hover { text-decoration: underline; }

/* ========== FOOTER ========== */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.85);
  padding: 50px 20px 20px;
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

.footer-brand .logo-text { color: #fff; }
.footer-brand .logo-text span { color: var(--pink); }
.footer-brand p { margin-top: 12px; font-size: 14px; opacity: 0.75; line-height: 1.6; }

.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 14px; transition: 0.2s; }
.footer-col ul li a:hover { color: var(--pink); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
}

/* ========== TRUST BADGES ========== */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 28px 20px;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

.trust-icon { font-size: 22px; }

/* ========== STEPS ========== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.step-num {
  width: 40px; height: 40px;
  background: var(--purple);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin: 0 auto 14px;
}

.step-icon { font-size: 32px; margin-bottom: 10px; }
.step-title { font-weight: 700; margin-bottom: 6px; }
.step-desc { font-size: 13px; color: var(--text-light); }

/* ========== MISC ========== */
.text-center { text-align: center; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }

.alert-success {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  color: #2e7d32;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 16px;
  display: none;
}

/* Floating WA button */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #25d366;
  color: #fff;
  border-radius: 50px;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: all 0.25s;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, #fce4ec 0%, #e8eaf6 100%);
  padding: 48px 20px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; margin-bottom: 8px; }
.page-hero p { color: var(--text-light); font-size: 1rem; }

.breadcrumb {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 8px;
}
.breadcrumb a { color: var(--purple); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
