/* TOKO GLOBAL WordPress Marketplace Styles */
.tg-wp-app {
  font-family: -apple-system, BlinkMacSystemFont, "Plus Jakarta Sans", "Segoe UI", Roboto, sans-serif;
  color: #111827;
  background: #F7F9F8;
  border-radius: 16px;
  padding: 20px;
  box-sizing: border-box;
  max-width: 1240px;
  margin: 0 auto;
}
.tg-wp-app *, .tg-wp-app *::before, .tg-wp-app *::after {
  box-sizing: border-box;
}
.tg-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 18px;
}
.tg-brand {
  font-weight: 800;
  font-size: 18px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tg-brand-accent { color: #008B4A; }
.tg-search-wrap {
  display: flex;
  flex: 1 1 260px;
  max-width: 480px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  overflow: hidden;
}
.tg-search-wrap select, .tg-search-wrap input {
  border: none;
  background: transparent;
  padding: 9px 10px;
  font-size: 13px;
  color: #0f172a;
  outline: none;
}
.tg-search-wrap select { border-right: 1px solid #e2e8f0; max-width: 135px; }
.tg-search-wrap input { flex: 1; min-width: 0; }
.tg-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tg-btn {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #1e293b;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.tg-btn-primary {
  background: #00AA5B;
  border-color: #00AA5B;
  color: #ffffff;
}
.tg-btn-primary:hover { background: #008B4A; }
.tg-hero {
  background: linear-gradient(135deg, #0f2a1e 0%, #133828 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
}
.tg-hero-kicker { color: #6ee7b7; font-size: 12px; font-weight: 600; margin: 0 0 8px; }
.tg-hero h2 { color: #ffffff; margin: 0 0 8px; font-size: 24px; line-height: 1.25; }
.tg-hero p { color: #cbd5e1; margin: 0; font-size: 14px; max-width: 640px; }
.tg-cats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}
.tg-cat-btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}
.tg-cat-btn.active { border-color: #00AA5B; background: #ecfdf5; color: #008B4A; }
.tg-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.tg-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 14px;
  gap: 8px;
}
.tg-card-vendor { font-size: 11px; color: #64748b; }
.tg-card-title { font-size: 14px; font-weight: 700; color: #0f172a; line-height: 1.35; margin: 0; }
.tg-card-price { font-size: 16px; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; }
.tg-card-meta { font-size: 11px; color: #64748b; }
.tg-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.tg-card-actions button { flex: 1; }
.tg-mobile-nav {
  display: none;
}
.tg-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.tg-modal {
  background: #ffffff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.tg-field { margin-bottom: 12px; }
.tg-field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; color: #334155; }
.tg-field input, .tg-field textarea, .tg-field select {
  width: 100%; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 13px;
}
@media (max-width: 900px) {
  .tg-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
@media (max-width: 640px) {
  .tg-wp-app { padding: 12px 12px 76px; }
  .tg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tg-mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    z-index: 9999;
  }
  .tg-mobile-nav button {
    background: transparent;
    border: none;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
  }
  .tg-mobile-nav button.active { color: #008B4A; }
}
