:root {
  --yonke-dark: #0a1931;
  --yonke-blue: #1c3a6e;
  --yonke-yellow: #ffcc00;
  --bg: #f3f5f9;
  --card: #ffffff;
  --muted: #667085;
  --border: #e7ebf3;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: #111;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

.topbar {
  background: linear-gradient(120deg, var(--yonke-dark), #132b50);
  border-bottom: 3px solid var(--yonke-yellow);
  color: #fff;
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: .3px;
}
.brand img { width: 52px; height: 52px; object-fit: contain; }
.tagline { margin: 0; color: #cfd8e7; font-size: .95rem; }

.main-grid { padding: 24px 0 34px; }
.legal-wrap { padding: 24px 0 34px; }

.search-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(16, 24, 40, .05);
  padding: 20px;
  margin-bottom: 18px;
}

.search-card h1 {
  margin: 0 0 14px;
  font-size: 1.18rem;
  color: var(--yonke-dark);
}

.legal-card p {
  color: #344054;
  line-height: 1.65;
  margin: 0 0 10px;
}

.search-form {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}
.search-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .85rem;
  color: var(--muted);
}
.search-form input {
  border: 1px solid #d9dfeb;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: .95rem;
}
.search-form input:focus {
  outline: none;
  border-color: var(--yonke-blue);
  box-shadow: 0 0 0 3px rgba(28,58,110,.12);
}

.actions {
  display: flex;
  align-items: end;
  gap: 8px;
}
.btn-primary,
.btn-ghost {
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary { background: var(--yonke-yellow); color: #161616; }
.btn-primary:hover { filter: brightness(.96); }
.btn-ghost { background: #eef2fa; color: #243a62; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
}
.section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--yonke-dark);
}
#result-count { color: var(--muted); font-size: .9rem; }

.gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .05);
}

.card img {
  width: 100%;
  height: 156px;
  object-fit: cover;
  background: #eef2f8;
}

.card-body {
  padding: 12px;
}
.card-title { margin: 0; font-size: 1rem; color: var(--yonke-dark); }
.card-sub { margin: 5px 0 0; color: var(--muted); font-size: .86rem; }
.card-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
}
.card-meta .stock {
  background: #ecfdf3;
  color: #067647;
  border: 1px solid #b7ebcf;
  border-radius: 999px;
  padding: 4px 10px;
}
.card button {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 9px;
  padding: 10px;
  background: var(--yonke-blue);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.hidden { display: none !important; }
.empty {
  background: #fff;
  border: 1px dashed #ccd5e5;
  border-radius: 12px;
  padding: 20px;
  color: #556074;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 49, .56);
}
.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(500px, 96vw);
  height: 100%;
  background: #fff;
  padding: 18px;
  overflow: auto;
}
.drawer-close {
  border: 1px solid #d7ddea;
  background: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  float: right;
  cursor: pointer;
}
.detail-main-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.detail-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}
.detail-grid img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.info-card {
  margin-top: 14px;
  background: #f8faff;
  border: 1px solid #dce6fb;
  border-radius: 12px;
  padding: 12px;
}
.info-card h3 {
  margin: 0 0 8px;
  color: var(--yonke-dark);
}
.info-row {
  margin: 6px 0;
  color: #344054;
  font-size: .95rem;
}
.info-card a {
  display: inline-block;
  margin-top: 8px;
  text-decoration: none;
  background: var(--yonke-yellow);
  color: #111;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 700;
}

.footer {
  border-top: 1px solid var(--border);
  background: #fff;
}
.footer-inner {
  min-height: 66px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .92rem;
}
.footer nav { display: flex; gap: 12px; }
.footer a { color: var(--yonke-blue); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .search-form {
    grid-template-columns: 1fr;
  }
  .actions { align-items: stretch; }
  .actions button { flex: 1; }
}
