/* INEXA Shop — shared styles (neo-brutalism) */
:root {
  --bg: #F3F5EE; --ink: #142E25; --accent: #D9F522;
  --card: #FFFFFF; --muted: #6B7280;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  background-image:
    linear-gradient(rgba(20,46,37,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20,46,37,.04) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink); min-height: 100vh;
}
header {
  background: var(--ink); color: #fff; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 3px solid #000;
}
header h1 { font-size: 1.3rem; font-weight: 800; }
header h1 a { color: #fff; text-decoration: none; }
header h1 span { background: var(--accent); color: var(--ink);
  padding: 2px 8px; border-radius: 6px; }
header nav a { color: #fff; text-decoration: none; font-weight: 700; margin-left: 14px; }
.highlight { background: linear-gradient(transparent 60%, var(--accent) 60%); }
.container { max-width: 900px; margin: 0 auto; padding: 20px; }
.back { display: inline-block; margin-bottom: 16px; color: var(--ink);
  font-weight: 700; text-decoration: none; }
.btn {
  display: block; width: 100%; padding: 16px; border: 3px solid #000;
  border-radius: 12px; font-size: 1.1rem; font-weight: 800; cursor: pointer;
  text-align: center; text-decoration: none; margin-top: 10px;
  box-shadow: 4px 4px 0 #000;
}
.btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 #000; }
.btn-cart { background: var(--accent); color: var(--ink); }
.btn-wa { background: #25D366; color: #fff; }
.loading, .empty { text-align: center; padding: 60px 20px; color: var(--muted); }
footer {
  text-align: center; padding: 30px 20px; color: var(--muted); font-size: .85rem;
  border-top: 3px solid var(--ink); margin-top: 20px; background: #fff;
}
.cart-btn {
  background: var(--accent); color: var(--ink); border: 3px solid #000;
  border-radius: 12px; padding: 8px 16px; font-weight: 800; cursor: pointer;
  box-shadow: 3px 3px 0 #000; text-decoration: none; display: inline-block;
}
.cart-btn:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 #000; }
/* breadcrumb */
.crumbs { font-size: .85rem; margin-bottom: 14px; color: var(--muted); }
.crumbs a { color: var(--ink); font-weight: 700; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
/* wishlist heart */
.wish-btn {
  position: absolute; top: 10px; right: 10px; width: 38px; height: 38px;
  border: 3px solid var(--ink); border-radius: 50%; background: #fff;
  font-size: 1.1rem; cursor: pointer; display: flex; align-items: center;
  justify-content: center; box-shadow: 2px 2px 0 #000; z-index: 2;
}
.wish-btn.active { background: var(--accent); }
.card { position: relative; }
/* share row */
.share-row { display: flex; gap: 10px; margin-top: 12px; }
.share-row .btn { margin-top: 0; padding: 12px; font-size: .95rem; }
.btn-share-wa { background: #25D366; color: #fff; }
.btn-share-link { background: #fff; color: var(--ink); }

/* Mobile: 4-5 kolom produk presisi */
@media (max-width: 768px) {
  .grid { grid-template-columns: repeat(4, 1fr) !important; gap: 8px !important; }
  .card .pname { font-size: 11px !important; line-height: 1.2; }
  .card .pprice { font-size: 12px !important; }
  .card .pbrand { font-size: 10px !important; }
}
@media (max-width: 400px) {
  .grid { grid-template-columns: repeat(5, 1fr) !important; gap: 6px !important; }
}
