/* === VARIABLES === */
:root {
  --primary: #F4A261;
  --accent:  #E76F51;
  --btn:     #2A9D8F;
  --dark:    #333333;
  --light:   #f9f9f9;
  --border:  #e0e0e0;
  --text:    #222222;
  --muted:   #aaaaaa;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--text); background: #fff; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; width: 100%; object-fit: cover; }

/* === NAVBAR === */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 60px;
  background: var(--dark);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
}
.navbar-brand {
  font-weight: 700; font-size: 1rem; color: #fff;
  text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.2;
  text-align: center;
}
.navbar-nav { display: flex; gap: 24px; align-items: center; }
.navbar-nav a {
  color: #fff; font-size: 0.9rem;
  padding-bottom: 2px;
}
.navbar-nav a.active { text-decoration: underline; }
.navbar-nav a:hover { text-decoration: underline; }

/* === MAIN OFFSET === */
main { margin-top: 60px; }

/* === HERO (Beranda) === */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff; text-align: center;
  padding: 80px 40px;
}
.hero h1 { font-size: 2.4rem; margin-bottom: 16px; }
.hero p  { font-size: 1.1rem; max-width: 600px; margin: 0 auto 28px; opacity: 0.92; }
.btn-cta {
  display: inline-block;
  background: #fff; color: var(--accent);
  font-weight: 700; padding: 12px 32px; border-radius: 6px;
  font-size: 1rem;
}
.btn-cta:hover { background: var(--dark); color: #fff; }

/* === CATALOG HEADER === */
.catalog-header {
  background: var(--primary);
  color: #fff; padding: 48px 40px;
  text-align: center;
}
.catalog-header h1 { font-size: 2rem; margin-bottom: 10px; }
.catalog-header p  { font-size: 0.95rem; max-width: 640px; margin: 0 auto; opacity: 0.9; }

/* === CATALOG LAYOUT === */
.catalog-body {
  display: flex; gap: 24px;
  padding: 32px 40px; max-width: 1200px; margin: 0 auto;
}

/* === SIDEBAR === */
.sidebar {
  width: 220px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: 8px;
  padding: 20px; align-self: flex-start;
}
.sidebar h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 14px; text-transform: uppercase; color: var(--muted); }
.sidebar label {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 10px; cursor: pointer; font-size: 0.9rem;
}
.sidebar input[type="checkbox"] { accent-color: var(--btn); width: 16px; height: 16px; }

/* === PRODUCT GRID === */
.product-grid {
  flex: 1;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.card {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow 0.2s;
}
.card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.12); }
.card-img { height: 180px; }
.card-img img { height: 100%; }
.card-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  color: #fff; background: var(--accent);
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  margin-bottom: 8px; align-self: flex-start;
}
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.card-desc  { font-size: 0.85rem; color: #555; flex: 1; line-height: 1.5; }
.card-footer { padding: 12px 16px; }
.btn-detail {
  display: block; text-align: center;
  background: var(--btn); color: #fff;
  padding: 9px 0; border-radius: 6px; font-size: 0.88rem; font-weight: 600;
}
.btn-detail:hover { background: #238a7e; }

/* === PAGINATION === */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  padding: 24px 0 40px;
}
.pagination a {
  width: 36px; height: 36px; border-radius: 6px;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; color: var(--text);
}
.pagination a.active { background: var(--btn); color: #fff; border-color: var(--btn); }
.pagination a:hover:not(.active) { background: var(--light); }

/* === DETAIL PAGE === */
.detail-hero {
  width: 100%; height: 320px; object-fit: cover;
  margin-top: 0; /* already inside main */
}
.detail-hero img { width: 100%; height: 320px; object-fit: cover; }

.detail-body {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 380px; gap: 40px;
  padding: 40px;
}
.detail-left h1  { font-size: 1.6rem; margin-bottom: 16px; }
.detail-left p   { font-size: 0.95rem; line-height: 1.7; color: #444; margin-bottom: 24px; }
.btn-wa {
  display: inline-block;
  background: var(--btn); color: #fff;
  padding: 11px 28px; border-radius: 6px; font-weight: 700; font-size: 0.95rem;
}
.btn-wa:hover { background: #238a7e; }

.detail-right h3 { font-size: 1rem; font-weight: 700; margin-bottom: 14px; }
.contact-list li {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 12px; font-size: 0.88rem; color: #444; line-height: 1.5;
}
.contact-list .icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.map-wrap { margin-top: 24px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.map-wrap iframe { width: 100%; height: 260px; border: none; }

/* === FOOTER === */
.footer { background: var(--dark); color: #fff; padding: 40px 40px 24px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 32px; }
.footer-info { max-width: 500px; }
.footer-right { text-align: right; max-width: 450px; }
.footer-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--btn); color: #fff; font-weight: 700; font-size: 0.65rem;
  text-align: center; margin-bottom: 12px; line-height: 1.2;
}
.footer-info h4, .footer-right h4 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.footer-tagline { font-size: 0.88rem; color: #ccc; line-height: 1.6; max-width: 360px; }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid #444; }
.footer-copy { font-size: 0.85rem; color: var(--muted); }
.footer-sosial { display: flex; gap: 10px; margin-bottom: 12px; }
.footer-sosial a {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--btn); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}
.footer-right p { font-size: 0.85rem; color: #ccc; line-height: 1.6; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .catalog-body { flex-direction: column; padding: 20px; }
  .sidebar { width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .detail-body { grid-template-columns: 1fr; padding: 20px; }
  .footer { padding: 28px 20px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 60px 20px; }
  .hero h1 { font-size: 1.7rem; }
  .catalog-header { padding: 32px 20px; }
}
