:root{
  --primary:#0f766e;
  --primary-dark:#115e59;
  --wa:#22c55e;
  --ig:#d62976;
  --shop:#ee4d2d;
  --bg:#f0fdfa;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
}

@font-face{
  font-family:'Archicoco';
  src:url('./Archicoco.otf') format('truetype');
}

*{
  box-sizing:border-box;
  font-family:Inter,sans-serif;
}

body{
  margin:0;
  background:
    radial-gradient(circle at top, #ccfbf1 0, transparent 330px),
    var(--bg);
  color:var(--text);
}

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

.card{
  background:rgba(255,255,255,.92);
  border:1px solid rgba(15,118,110,.08);
  border-radius:24px;
  padding:22px;
  box-shadow:0 18px 45px rgba(15,118,110,.10);
}

.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  padding-bottom:18px;
  border-bottom:1px solid var(--line);
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.logo{
  width:78px;
  height:78px;
  object-fit:contain;
}

h1{
  margin:0;
  font-family:'Archicoco';
  color:#4daced;
  font-size:30px;
  line-height:1;
}

.motto{
  margin-top:5px;
  font-size:14px;
  color:var(--muted);
}

.social-links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.social-btn{
  min-width:100px;
  padding:11px 14px;
  border-radius:999px;
  color:#fff;
  text-decoration:none;
  font-size:13px;
  font-weight:700;
  text-align:center;
  box-shadow:0 8px 18px rgba(0,0,0,.10);
}

.wa{background:var(--wa);}
.ig{background:var(--ig);}
.shop{background:var(--shop);}

.install-btn{
  width:100%;
  margin-top:16px;
  padding:13px;
  border-radius:16px;
  border:none;
  background:var(--primary);
  color:#fff;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
}

.toolbar{
  display:grid;
  grid-template-columns:1fr auto;
  gap:14px;
  align-items:center;
  margin-top:20px;
}

#searchBox{
  width:100%;
  padding:14px 16px;
  border-radius:16px;
  border:2px solid #d1d5db;
  font-size:15px;
  outline:none;
}

#searchBox:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(15,118,110,.12);
}

.section-title{
  margin:24px 0 14px;
  font-size:22px;
  font-weight:800;
}

.products{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:16px;
}

.product{
  background:var(--card);
  border:1px solid rgba(0,0,0,.06);
  border-radius:18px;
  padding:12px;
  box-shadow:0 8px 22px rgba(0,0,0,.06);
  display:flex;
  flex-direction:column;
  min-height:100%;
  transition:.2s ease;
}

.product:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 28px rgba(0,0,0,.10);
}

.product img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:14px;
  background:#f3f4f6;
}

.name{
  font-size:14px;
  font-weight:800;
  margin-top:10px;
  line-height:1.35;
  min-height:38px;
}

.price{
  font-size:15px;
  color:var(--primary);
  font-weight:800;
  margin-top:5px;
}

.keterangan{
  font-size:12px;
  color:var(--muted);
  margin-top:5px;
  line-height:1.35;
}

.actions{
  margin-top:auto;
  padding-top:8px;
}

.ask{
  display:block;
  margin-top:7px;
  padding:10px;
  background:var(--primary);
  color:#fff;
  border-radius:12px;
  text-align:center;
  font-size:12px;
  font-weight:800;
  text-decoration:none;
}

.ask:hover{
  background:var(--primary-dark);
}

.detail{
  background:#e5e7eb;
  color:#0f766e;
}

.detail:hover{
  background:#d1d5db;
}

#pagination{
  margin-top:20px;
  text-align:center;
}

#pagination button,
.nav-buttons button{
  margin:4px;
  padding:8px 12px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  font-weight:800;
}

.nav-buttons{
  text-align:center;
  margin-top:12px;
}

.nav-buttons button{
  background:#e5e7eb;
  color:#374151;
  padding:10px 18px;
}

footer{
  text-align:center;
  font-size:12px;
  margin-top:18px;
  color:#6b7280;
}

/* TABLET */
@media(max-width:900px){
  .container{
    max-width:760px;
  }

  .products{
    grid-template-columns:repeat(3,1fr);
  }

  .header{
    justify-content:center;
    text-align:center;
  }

  .brand{
    justify-content:center;
  }

  .social-links{
    justify-content:center;
    width:100%;
  }
}

/* HP */
@media(max-width:600px){
  .container{
    padding:12px;
  }

  .card{
    border-radius:20px;
    padding:16px;
  }

  .header{
    display:block;
    text-align:center;
  }

  .brand{
    display:block;
  }

  .logo{
    width:105px;
    height:auto;
    margin-bottom:8px;
  }

  h1{
    font-size:25px;
  }

  .social-links{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:8px;
    margin-top:16px;
  }

  .social-btn{
    min-width:0;
    padding:11px 6px;
    font-size:12px;
  }

  .toolbar{
    grid-template-columns:1fr;
  }

  .section-title{
    font-size:18px;
  }

  .products{
    grid-template-columns:repeat(2,1fr);
    gap:12px;
  }

  .product{
    padding:10px;
    border-radius:15px;
  }

  .name{
    font-size:13px;
  }

  .price{
    font-size:14px;
  }

  .ask{
    font-size:11px;
    padding:9px 6px;
  }
}

/* HP KECIL */
@media(max-width:360px){
  .products{
    grid-template-columns:1fr;
  }
}

.empty-message{
  grid-column:1/-1;
  text-align:center;
  color:#6b7280;
}

.page-btn.active{
  background:#0f766e;
  color:#fff;
}

.page-btn:not(.active){
  background:#e5e7eb;
  color:#374151;
}



.loading-produk {
  grid-column: 1 / -1;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
  color: #0f766e;
  background: linear-gradient(135deg, #ecfdf5, #f8fafc);
  border: 1px solid #ccfbf1;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.08);
}

.loading-produk p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #64748b;
}

.loader {
  width: 34px;
  height: 34px;
  border: 4px solid #ccfbf1;
  border-top-color: #0f766e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}