/* Kymi Car Consumables Hub — Consistent with Kymi Family Design System */

.hero-section {
  background: linear-gradient(135deg, #f8faff 0%, #eef2ff 52%, #f5f3ff 100%);
  border-bottom: 1px solid var(--border);
  padding: 2.2rem 0 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 1.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #fff;
  border: 1px solid #c7d2fe;
  color: #4338ca;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0 0 0.65rem;
}
.hero-title .accent { color: var(--primary); }

.hero-desc {
  font-size: 0.96rem;
  color: var(--text-sub);
  line-height: 1.6;
  margin: 0 0 1.2rem;
  max-width: 660px;
}

.search-box-wrap {
  display: flex;
  gap: 0.5rem;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 14px;
  padding: 0.35rem 0.45rem 0.35rem 1rem;
  box-shadow: 0 10px 26px rgba(79, 70, 229, 0.11);
  max-width: 650px;
}

.search-box-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  min-width: 0;
}

.search-box-wrap button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.search-box-wrap button:hover { background: #4338ca; }

.search-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.55rem;
}

.hero-stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.hero-stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}
.hero-stat-label { font-size: 0.78rem; font-weight: 700; color: var(--text-muted); }
.free-pill { background: #ecfdf5; color: #047857; font-size: 0.72rem; font-weight: 800; padding: 0.18rem 0.5rem; border-radius: 999px; }
.hero-stat-title { font-size: 1.02rem; font-weight: 800; color: var(--text); line-height: 1.35; margin-bottom: 0.85rem; }
.hero-stat-rows { display: grid; gap: 0.45rem; border-top: 1px solid var(--border); padding-top: 0.75rem; font-size: 0.83rem; }
.hero-stat-row { display: flex; justify-content: space-between; gap: 0.5rem; }
.hero-stat-row span { color: var(--text-muted); }
.hero-stat-row strong { color: var(--text); font-weight: 700; text-align: right; }

/* Single-line Tool Strip */
.quick-strip {
  margin-top: 1.35rem;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 14px;
  padding: 0.8rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.quick-strip-text { font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 0.55rem; }
.quick-strip-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.strip-btn { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.42rem 0.85rem; border-radius: 9px; font-size: 0.83rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.strip-btn-primary { background: #4f46e5; color: #fff; }
.strip-btn-primary:hover { background: #4338ca; }
.strip-btn-ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); }
.strip-btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

.section-block { padding: 1.75rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; margin-bottom: 1rem; flex-wrap: wrap; }
.section-title { font-size: 1.2rem; font-weight: 800; color: var(--text); margin: 0; display: flex; align-items: center; gap: 0.45rem; }

/* 5-Column Brand Grid (2 clean rows of 5 = 10 brands) */
.brand-grid-10 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.brand-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 0.85rem 0.9rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.brand-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.08);
}
.brand-card-top { display: flex; justify-content: space-between; align-items: center; }
.brand-card-name { font-size: 0.95rem; font-weight: 800; }
.brand-card-count { font-size: 0.74rem; font-weight: 700; color: var(--primary); background: #eef2ff; padding: 0.15rem 0.45rem; border-radius: 999px; }
.brand-card-sub { font-size: 0.76rem; color: var(--text-muted); }

/* Filter Pills */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.42rem; margin-bottom: 1rem; }
.filter-pill { background: #fff; border: 1px solid var(--border); color: var(--text-sub); font-size: 0.83rem; font-weight: 700; padding: 0.42rem 0.8rem; border-radius: 999px; cursor: pointer; transition: 0.15s ease; }
.filter-pill:hover { border-color: var(--primary); color: var(--primary); }
.filter-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Car Cards Grid */
.car-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }

.car-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.05rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.car-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06); }
.car-card-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.car-brand-pill { font-size: 0.75rem; font-weight: 800; color: #4338ca; background: #eef2ff; padding: 0.18rem 0.55rem; border-radius: 999px; }
.car-years { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); }
.car-name { font-size: 1.02rem; font-weight: 800; color: var(--text); margin: 0; }
.car-specs-mini { display: grid; gap: 0.25rem; font-size: 0.8rem; color: var(--text-sub); }
.car-specs-mini div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-card-foot { margin-top: auto; padding-top: 0.5rem; border-top: 1px dashed var(--border); display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--primary); font-weight: 700; }

/* Detail Page Spec Table */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--text-sub); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

.detail-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; margin-bottom: 1.25rem; }
.geo-summary { background: #f8faff; border-left: 4px solid var(--primary); border-radius: 0 12px 12px 0; padding: 1rem 1.15rem; margin: 1rem 0 1.25rem; font-size: 0.93rem; line-height: 1.65; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.spec-box {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1.05rem;
}
.spec-box-label { font-size: 0.78rem; font-weight: 800; color: var(--primary); margin-bottom: 0.25rem; }
.spec-box-val { font-size: 0.96rem; font-weight: 800; color: var(--text); line-height: 1.4; }
.spec-box-sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }

.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec-table th, .spec-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.spec-table th { background: #f8fafc; font-weight: 800; }

.manual-box {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: 14px;
  padding: 1.2rem 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}
.manual-btn { background: #4f46e5; color: #fff; padding: 0.6rem 1.15rem; border-radius: 10px; font-weight: 800; font-size: 0.9rem; text-decoration: none; }
.manual-btn:hover { background: #4338ca; }

/* Interactive Calculator Forms */
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0; }
.calc-field label { display: block; font-size: 0.84rem; font-weight: 700; margin-bottom: 0.35rem; }
.calc-field input, .calc-field select { width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--border); border-radius: 10px; font-size: 0.95rem; font-weight: 600; }
.calc-result { background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 14px; padding: 1.15rem 1.25rem; margin-top: 1rem; }

.empty-state { text-align: center; padding: 2.5rem 1.5rem; background: #fff; border: 1px dashed var(--border); border-radius: 14px; display: none; }

@media (max-width: 1024px) {
  .brand-grid-10 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stat-card { display: none; }
  .spec-grid, .calc-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .car-grid { grid-template-columns: 1fr; }
}
