:root {
  --navy: #0b1f33;
  --navy-2: #122c47;
  --steel: #1d3d5f;
  --accent: #f5a623;
  --accent-dark: #d88f12;
  --ink: #1a2632;
  --muted: #5b6b7b;
  --line: #dde4ec;
  --bg: #f4f6f9;
  --card: #ffffff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(11, 31, 51, .08), 0 4px 14px rgba(11, 31, 51, .06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

#inventory, #contact { scroll-margin-top: 72px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 1.05rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: var(--accent); color: var(--navy); flex: none; }
.brand-text em { font-style: normal; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 20px; font-size: .92rem; }
.site-nav a { color: #cfdae6; text-decoration: none; }
.site-nav a:hover { color: #fff; }
.site-nav .nav-cta { color: var(--accent); font-weight: 600; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--steel) 100%);
  color: #fff;
  padding: 72px 0 80px;
  text-align: center;
}
.hero-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; margin-bottom: 18px; }
.hero-sub { max-width: 640px; margin: 0 auto 30px; color: #c6d3e0; font-size: 1.06rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px;
  font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: all .15s ease;
}
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: #4a637d; color: #fff; background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; border: none; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }

/* Toolbar */
main { padding: 40px 0 60px; }
.toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search-wrap {
  flex: 1 1 320px; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 0 14px;
  color: var(--muted);
}
.search-wrap input {
  flex: 1; border: none; outline: none; padding: 12px 0; font-size: 1rem; background: transparent; color: var(--ink);
}
.toolbar-right select {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--card);
  font-size: .92rem; color: var(--ink); cursor: pointer;
}

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-size: .85rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .12s ease;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.result-count { font-size: .88rem; color: var(--muted); margin: 6px 2px 16px; }

/* Grid */
.grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(11,31,51,.13); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: #e9edf2; cursor: zoom-in; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img .no-photo {
  display: grid; place-items: center; height: 100%; color: var(--muted); font-size: .85rem;
}
.card-body { padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: .98rem; line-height: 1.3; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .02em;
}
.badge-section { background: #e8eef5; color: var(--steel); }
.badge-qty { background: #eef7ee; color: #256b2f; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; }
.price { font-weight: 800; color: var(--navy); font-size: 1.02rem; }
.price small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; }
.price.inquire { font-size: .85rem; color: var(--accent-dark); font-weight: 700; }
.add-btn {
  border: 1.5px solid var(--line); background: #fff; border-radius: 7px; padding: 7px 11px;
  font-size: .78rem; font-weight: 700; color: var(--steel); cursor: pointer; white-space: nowrap;
  transition: all .12s ease;
}
.add-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.add-btn.added { background: var(--navy); border-color: var(--navy); color: #fff; }

.no-results { text-align: center; color: var(--muted); padding: 50px 0; font-size: 1.02rem; }

/* Contact */
.contact { background: var(--navy); color: #fff; padding: 64px 0; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-copy h2 { font-size: 1.7rem; margin-bottom: 14px; }
.contact-copy p { color: #c6d3e0; margin-bottom: 16px; }
.contact-direct a { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.contact-direct a:hover { text-decoration: underline; }

.inquiry-summary { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 16px 18px; margin-top: 10px; }
.inquiry-summary h3 { font-size: .95rem; margin-bottom: 8px; color: var(--accent); }
.inquiry-summary ul { list-style: none; font-size: .88rem; color: #d8e2ec; }
.inquiry-summary li { padding: 3px 0; display: flex; justify-content: space-between; gap: 10px; }
.inquiry-summary li button { background: none; border: none; color: #8fa5ba; cursor: pointer; font-size: .95rem; }
.inquiry-summary li button:hover { color: #fff; }
.link-btn { background: none; border: none; color: #8fa5ba; cursor: pointer; font-size: .8rem; margin-top: 8px; text-decoration: underline; }
.link-btn:hover { color: #fff; }

.contact-form { background: #fff; border-radius: var(--radius); padding: 26px; color: var(--ink); box-shadow: var(--shadow); }
.form-row { margin-bottom: 15px; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 5px; color: var(--steel); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 7px;
  font-size: .95rem; font-family: inherit; color: var(--ink); background: #fbfcfe;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.form-hint { font-size: .78rem; color: var(--muted); margin-top: 10px; text-align: center; }

/* Footer */
.site-footer { background: #081726; color: #9fb2c4; padding: 30px 0; text-align: center; font-size: .9rem; }
.footer-inner p { margin: 4px 0; }
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer .fine { font-size: .78rem; color: #67798c; margin-top: 10px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8, 20, 33, .92);
  display: flex; align-items: center; justify-content: center; padding: 30px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 90vw; max-height: 90vh; text-align: center; }
.lightbox img { max-width: 100%; max-height: 78vh; border-radius: 8px; box-shadow: 0 10px 50px rgba(0,0,0,.5); }
.lightbox figcaption { color: #fff; margin-top: 14px; font-size: 1.05rem; font-weight: 600; }
.lb-close {
  position: absolute; top: 18px; right: 26px; background: none; border: none;
  color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1;
}

/* Back to top */
.back-to-top {
  position: fixed; right: 22px; bottom: 26px; z-index: 70;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--accent); color: var(--navy);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
  transition: background .15s ease, transform .15s ease;
}
.back-to-top:hover { background: var(--accent-dark); transform: translateY(-2px); }
.back-to-top[hidden] { display: none; }

/* Inquiry bar */
.inquiry-bar {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 60;
  background: var(--navy); color: #fff; border-radius: 999px; padding: 10px 12px 10px 22px;
  display: flex; align-items: center; gap: 16px; box-shadow: 0 8px 30px rgba(0,0,0,.35);
  font-size: .9rem; font-weight: 600; white-space: nowrap;
}
.inquiry-bar[hidden] { display: none; }

@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; }
  .site-nav .nav-cta { display: none; }
  .hero { padding: 52px 0 58px; }
}
@media (max-width: 520px) {
  .form-row.two-col { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .site-nav a:not(.nav-cta) { font-size: .85rem; }
}
