/* ==========================================================
   Care for Hope - Stylesheet Utama
   ========================================================== */
:root{
  --primary: #504BF8;
  --accent: #6D69FF;
  --success: #10B981;
  --warning: #F59E0B;
  --bg: #F8F9FF;
  --white: #FFFFFF;
  --text: #111111;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --radius: 14px;
  --shadow: 0 4px 16px rgba(80,75,248,0.08);
  --shadow-hover: 0 10px 24px rgba(80,75,248,0.16);
}

*{ box-sizing: border-box; }
body{
  margin:0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-bottom: 64px; /* ruang untuk bottom nav mobile */
}
a{ text-decoration:none; color:inherit; }
img{ max-width:100%; display:block; }
.container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor:pointer;
  transition: all .15s ease;
}
.btn-primary{ background: var(--primary); color:#fff; }
.btn-primary:hover{ background: var(--accent); }
.btn-outline{ background: var(--white); color: var(--primary); border:1.5px solid var(--primary); }
.btn-outline:hover{ background: var(--bg); }
.btn-wa{ background: var(--success); color:#fff; width:100%; }
.btn-wa:hover{ filter: brightness(0.95); }
.btn-block{ width:100%; }

/* ===== Header ===== */
.site-header{
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 16px;
}
.logo{
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  white-space:nowrap;
}
.search-form{
  flex:1;
  max-width: 520px;
  display:flex;
}
.search-form input{
  flex:1;
  padding: 10px 14px;
  border:1.5px solid var(--border);
  border-right:none;
  border-radius: 10px 0 0 10px;
  font-size:14px;
  outline:none;
}
.search-form input:focus{ border-color: var(--primary); }
.search-form button{
  border:none;
  background: var(--primary);
  color:#fff;
  padding: 0 16px;
  border-radius: 0 10px 10px 0;
  cursor:pointer;
}
.header-actions{
  display:flex;
  gap:8px;
  white-space:nowrap;
}

@media (max-width: 768px){
  .search-form{ display:none; }
  .header-actions .btn{ padding: 8px 14px; font-size:13px; }
}

/* ===== Bottom nav (mobile) ===== */
.bottom-nav{
  display:none;
}
@media (max-width: 768px){
  .bottom-nav{
    display:flex;
    position: fixed;
    bottom:0; left:0; right:0;
    background: var(--white);
    border-top: 1px solid var(--border);
    z-index: 100;
  }
  .bottom-nav a{
    flex:1;
    text-align:center;
    padding: 8px 4px 10px;
    font-size: 11px;
    color: var(--text-muted);
  }
  .bottom-nav a.active{ color: var(--primary); font-weight:700; }
}

/* ===== Hero ===== */
.hero{
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color:#fff;
  padding: 48px 0;
}
.hero-inner{
  display:flex;
  align-items:center;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-text{ flex:1; min-width:280px; }
.hero-tag{
  display:inline-block;
  background: rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 14px;
}
.hero-text h1{ font-size: 32px; line-height:1.25; margin: 0 0 12px; }
.hero-text p{ opacity: 0.9; margin-bottom: 20px; font-size:15px; }
.hero-actions{ display:flex; gap:10px; flex-wrap:wrap; }
.hero-actions .btn-outline{ background: transparent; color:#fff; border-color: rgba(255,255,255,0.6); }
.hero-img{ flex:1; min-width:260px; }
.hero-img img{ border-radius: var(--radius); box-shadow: var(--shadow-hover); }

.stats{
  display:flex;
  gap: 32px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.stat-item .num{ font-size: 26px; font-weight:800; }
.stat-item .label{ font-size: 13px; opacity:0.85; }

/* ===== Section ===== */
.section{ padding: 40px 0; }
.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom: 20px;
}
.section-head h2{ font-size: 22px; margin:0; }
.section-head a{ color: var(--primary); font-weight:600; font-size: 14px; }

/* ===== Category chips ===== */
.category-grid{
  display:grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.category-chip{
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 10px;
  text-align:center;
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight:600;
  transition: transform .15s ease, box-shadow .15s ease;
}
.category-chip:hover{ transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.category-chip .icon{ font-size: 22px; margin-bottom:8px; }

@media (max-width: 992px){ .category-grid{ grid-template-columns: repeat(4,1fr); } }
@media (max-width: 576px){ .category-grid{ grid-template-columns: repeat(3,1fr); } }

/* ===== Product grid ===== */
.product-grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
@media (max-width: 1100px){ .product-grid{ grid-template-columns: repeat(4,1fr); } }
@media (max-width: 900px){ .product-grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width: 600px){ .product-grid{ grid-template-columns: repeat(2,1fr); gap: 12px; } }

.product-card{
  background: var(--white);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  display:flex;
  flex-direction:column;
}
.product-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-card .thumb{ aspect-ratio: 4/3; overflow:hidden; background:#eee; }
.product-card .thumb img{ width:100%; height:100%; object-fit:cover; }
.product-card .body{ padding: 12px; flex:1; display:flex; flex-direction:column; }
.product-card .foundation{ font-size: 11px; color: var(--text-muted); margin-bottom:4px; }
.product-card .name{ font-size: 14px; font-weight:600; margin:0 0 6px; line-height:1.3; min-height: 36px; }
.product-card .city{ font-size: 12px; color: var(--text-muted); margin-bottom:8px; }
.product-card .price{ font-size: 15px; font-weight:800; color: var(--primary); margin-bottom:10px; }
.product-card .btn{ margin-top:auto; font-size:13px; padding:8px 12px; }

/* ===== Foundation card ===== */
.foundation-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px){ .foundation-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 576px){ .foundation-grid{ grid-template-columns: 1fr; } }

.foundation-card{
  background: var(--white);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
.foundation-card .cover{ aspect-ratio: 16/9; background:#eee; overflow:hidden; }
.foundation-card .cover img{ width:100%; height:100%; object-fit:cover; }
.foundation-card .body{ padding: 14px; }
.foundation-card h4{ margin:0 0 6px; font-size:16px; }
.foundation-card .meta{ font-size:13px; color:var(--text-muted); margin-bottom:12px; }

/* ===== Why section ===== */
.why-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px){ .why-grid{ grid-template-columns: 1fr; } }
.why-card{
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align:center;
  box-shadow: var(--shadow);
}
.why-card .icon{ font-size: 28px; margin-bottom:10px; }
.why-card h4{ margin: 0 0 8px; }
.why-card p{ color: var(--text-muted); font-size:14px; margin:0; }

/* ===== Filter bar (halaman produk) ===== */
.filter-bar{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom: 20px;
}
.filter-chip{
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--white);
  border: 1.5px solid var(--border);
  font-size: 13px;
  font-weight:600;
  color: var(--text-muted);
}
.filter-chip.active{ background: var(--primary); color:#fff; border-color: var(--primary); }
.filter-chip:hover{ border-color: var(--primary); color: var(--primary); }
.filter-chip.active:hover{ color:#fff; }

/* ===== Pagination ===== */
.pagination{ display:flex; gap:6px; justify-content:center; margin-top: 28px; flex-wrap:wrap; }
.pagination a, .pagination span{
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 13px;
}
.pagination a.active{ background: var(--primary); color:#fff; border-color: var(--primary); }

/* ===== Product detail ===== */
.breadcrumb{ font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a{ color: var(--primary); }
.detail-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items:start;
}
@media (max-width: 800px){ .detail-grid{ grid-template-columns: 1fr; } }
.detail-gallery img{
  width:100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 1/1;
  object-fit:cover;
}
.detail-info .badge{
  display:inline-block;
  background: var(--bg);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight:600;
  margin-bottom: 10px;
}
.detail-info h1{ font-size: 24px; margin: 0 0 8px; }
.detail-info .foundation-link{ font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.detail-info .foundation-link a{ color: var(--primary); font-weight:600; }
.detail-info .location{ font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.detail-info .price{ font-size: 28px; font-weight:800; color: var(--primary); margin-bottom: 20px; }
.detail-info .desc-title{ font-weight:700; margin-bottom:8px; }
.detail-info .desc-text{ color: var(--text); line-height:1.6; font-size:14px; margin-bottom: 24px; }
.detail-info .order-box{
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.detail-info .order-box .note{ font-size:12px; color:var(--text-muted); margin-top:10px; text-align:center; }

/* ===== Footer ===== */
.site-footer{
  background: #0F0F1A;
  color: #C9C9D8;
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 700px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-grid h5{ color:#fff; margin: 0 0 12px; font-size:14px; }
.footer-grid p{ font-size: 13px; line-height:1.6; }
.footer-grid a{ display:block; font-size: 13px; margin-bottom: 8px; color:#C9C9D8; }
.footer-grid a:hover{ color: var(--accent); }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  font-size: 12px;
  text-align:center;
  color: #8A8AA0;
}
