:root {
  --blue: #1825AA; /* Pantone 2736 | RGB 24,37,170 */
  --orange: #F38B00; /* Pantone 144 | RGB 243,139,0 */
  --light: #ffffff;
  --bg: #f4f7fb;
  --text: #1f2937;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, rgba(32,39,54,0.08), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(245,124,0,0.10), transparent 55%),
              linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
  color: var(--text);
}

.hero {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid #e5e7eb;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-logo {
  width: 180px;
  height: 68px;
  object-fit: contain;
}

.brand-copy .tagline {
  color: #6b7280;
  font-size: 14px;
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

#search {
  width: 260px;
  max-width: 50vw;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  outline: none;
  background: #fff;
}

button.primary {
  background: var(--blue);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
button.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(32,39,54,.25); background: #253148; }

main { padding: 24px; }

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

.card {
  background: rgba(255,255,255,0.95);
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14); }

.card.selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 2px rgba(245,124,0,.25), 0 14px 32px rgba(15,23,42,.14);
}

.card img {
  width: 100%;
  height: 175px;
  object-fit: contain;
  background: #f6f8fb;
  border-radius: 14px;
  padding: 10px;
}

.card .name {
  margin-top: 10px;
  font-weight: 600;
  font-size: 13.5px;
  color: #111827;
}

.card .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--orange);
  color: white;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .2s ease, transform .2s ease;
}
.card.selected .badge { opacity: 1; transform: translateY(0); }

footer {
  border-top: 1px solid #e5e7eb;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
}

.hint { color: #6b7280; font-size: 13px; }
.selected { font-weight: 600; color: var(--blue); }

.qty {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.qty input {
  width: 56px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.modal.hidden { display: none; }

.modal-content {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  width: min(520px, 92vw);
  box-shadow: 0 20px 60px rgba(15,23,42,0.2);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #374151;
}

.form-grid input {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.note { color: #6b7280; font-size: 12.5px; }

@media (max-width: 720px) {
  .form-grid { grid-template-columns: 1fr; }
}

.landing {
  min-height: 100vh;
}

.landing-hero {
  position: relative;
}

.landing-main {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.landing-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.landing-card h2 { margin: 0 0 8px; color: var(--blue); }
.landing-card p { margin: 0; color: #374151; line-height: 1.5; }
.landing-card ul { margin: 8px 0 0 18px; color: #374151; }

.landing-cta {
  grid-column: 1 / -1;
  background: linear-gradient(90deg, rgba(24,37,170,0.08), rgba(243,139,0,0.10));
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.link-btn { text-decoration: none; display: inline-block; }

@media (max-width: 720px) {
  .hero { flex-direction: column; align-items: flex-start; }
  .actions { width: 100%; }
  #search { flex: 1; width: 100%; }
  .landing-cta { flex-direction: column; align-items: flex-start; }
}
