:root {
  --navy: #0b2a4a;
  --navy-light: #123a63;
  --orange: #f47920;
  --gray: #f5f6f8;
  --text: #1c2733;
}
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', Arial, sans-serif; }
body { background: var(--gray); color: var(--text); }

.topbar {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
}
.logo-img { height: 68px; background: #fff; border-radius: 8px; padding: 4px 10px; display: block; }

.search { display: flex; }
.search input {
  padding: 10px 14px;
  width: 280px;
  border: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
}
.search button {
  padding: 10px 18px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 0 4px 4px 0;
  font-weight: bold;
  cursor: pointer;
}
.search button:hover { background: #d96a15; }

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, var(--orange) 130%);
  color: #fff;
  text-align: center;
  padding: 90px 20px 100px;
}
.hero h1 { font-size: 38px; line-height: 1.25; margin-bottom: 14px; }
.hero p { font-size: 16px; opacity: .9; margin-bottom: 28px; }
.hero-search { justify-content: center; }
.hero-search input { width: 380px; }

.trust-bar {
  background: #fff;
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 22px 20px;
  flex-wrap: wrap;
  border-bottom: 1px solid #eee;
}
.trust-bar div { text-align: center; }
.trust-bar strong { display: block; color: var(--navy); font-size: 16px; }
.trust-bar span { color: #778; font-size: 12px; }

.browse { padding: 40px 32px; max-width: 1200px; margin: 0 auto; }
.browse-alt { background: #fff; max-width: 100%; margin-top: 0; padding-top: 40px; padding-bottom: 40px; }
.browse-alt .tile-grid, .browse-alt h2 { max-width: 1200px; margin-left: auto; margin-right: auto; }
.browse h2 { color: var(--navy); font-size: 20px; margin-bottom: 18px; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid #e4e8ee;
  border-left: 4px solid var(--orange);
  border-radius: 6px;
  padding: 16px 18px;
  text-decoration: none;
  transition: box-shadow .15s ease, transform .15s ease;
}
.tile:hover { box-shadow: 0 4px 12px rgba(11,42,74,.1); transform: translateY(-2px); }
.tile-name { color: var(--navy); font-weight: bold; font-size: 15px; text-transform: capitalize; }
.tile-count { color: #889; font-size: 12px; }

.tile-icon { width: 32px; height: 32px; color: var(--orange); margin-bottom: 6px; }
.tile-icon svg { width: 100%; height: 100%; display: block; }

.tile-grid-brand { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.tile-brand { align-items: center; justify-content: center; text-align: center; padding: 18px; }
.tile-logo { max-width: 100%; max-height: 40px; object-fit: contain; margin-bottom: 8px; }

.results { padding: 32px; max-width: 1200px; margin: 0 auto; }
.results h2 { margin-bottom: 20px; color: var(--navy); font-size: 20px; }

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

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(11,42,74,.08);
  border-top: 3px solid var(--orange);
  transition: transform .15s ease;
  display: block;
  text-decoration: none;
  color: inherit;
}
.card:hover { transform: translateY(-3px); }

.card-img {
  background: #fff;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-img img { max-width: 100%; max-height: 100%; object-fit: contain; }

.card-body { padding: 14px 16px; }
.tag { color: var(--navy); font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.card h3 { font-size: 15px; color: var(--text); margin-bottom: 6px; line-height: 1.3; }
.card .price { color: var(--orange); font-weight: bold; font-size: 17px; }

footer { text-align: center; padding: 24px; color: #99a; }

/* Product detail page */
.product { padding: 32px; max-width: 1000px; margin: 0 auto; }
.product-main { display: flex; gap: 40px; background: #fff; border-radius: 8px; padding: 28px; box-shadow: 0 2px 8px rgba(11,42,74,.08); }
.product-img { flex: 0 0 320px; display: flex; align-items: center; justify-content: center; }
.product-img img { max-width: 100%; max-height: 320px; object-fit: contain; }
.product-info { flex: 1; }
.product-info h1 { font-size: 24px; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.product-price { color: var(--orange); font-weight: bold; font-size: 26px; margin-bottom: 18px; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th { text-align: left; color: var(--navy); font-size: 13px; padding: 8px 0; width: 160px; vertical-align: top; border-top: 1px solid #eee; }
.spec-table td { padding: 8px 0; font-size: 14px; color: var(--text); border-top: 1px solid #eee; }

.spec-block { margin-top: 24px; background: #fff; border-radius: 8px; padding: 24px 28px; box-shadow: 0 2px 8px rgba(11,42,74,.08); }
.spec-block h2 { font-size: 16px; color: var(--navy); margin-bottom: 14px; }

.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { background: var(--gray); border: 1px solid #e0e4ea; padding: 6px 12px; border-radius: 20px; font-size: 13px; color: var(--text); }

.model-table { width: 100%; border-collapse: collapse; }
.model-table th { text-align: left; background: var(--gray); padding: 8px 12px; font-size: 12px; color: var(--navy); text-transform: uppercase; }
.model-table td { padding: 8px 12px; font-size: 14px; border-top: 1px solid #eee; }
