:root {
  --page-bg: #ffffff;
  --text: #181818;
  --muted: #626262;
  --border: #ececec;
  --accent: #e40013;
  --accent-dark: #bf0010;
  --popup-bg: #ebe6ef;
  --container: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--page-bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.container {
  width: min(100% - 24px, var(--container));
  margin: 0 auto;
}

.topbar {
  background: #fff;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0 10px;
}

.brandmark img {
  width: 286px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  font-weight: 700;
}

.search-shell {
  position: relative;
  width: 132px;
}

.search-shell input {
  width: 100%;
  height: 28px;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  padding: 0 30px 0 10px;
  font-size: 10px;
  color: #777;
  outline: none;
}

.search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  border: 1.5px solid #4f4f4f;
  border-radius: 50%;
  transform: translateY(-50%);
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 5px;
  height: 1.5px;
  background: #4f4f4f;
  transform: rotate(45deg);
}

.brandline {
  height: 12px;
  background: var(--accent);
}

.board-layout {
  min-height: calc(100vh - 120px);
  padding: 18px 0 48px;
}

.board-title {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 700;
}

.filter-accent {
  display: grid;
  gap: 10px;
  width: 118px;
  margin-bottom: 42px;
}

.filter-icon {
  position: relative;
  width: 14px;
  height: 14px;
}

.filter-icon::before,
.filter-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  clip-path: polygon(0 0, 100% 0, 60% 55%, 60% 100%, 40% 100%, 40% 55%);
}

.filter-line {
  display: block;
  width: 94px;
  height: 2px;
  background: var(--accent);
}

.series-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 36px;
  align-items: start;
  justify-items: center;
}

.series-card {
  width: 100%;
  max-width: 280px;
  padding: 4px 8px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.series-card.is-active {
  transform: translateY(-2px);
}

.series-button {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.series-card.is-active .series-title {
  color: var(--accent);
}

.series-image-wrap {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.series-image-wrap img {
  width: 150px;
  object-fit: contain;
}

.series-title {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
}

.dot-row {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.color-dot.is-filled {
  background: currentColor;
}

.color-dot.is-active {
  box-shadow: 0 0 0 1px #fff inset, 0 0 0 1px var(--accent);
}

.series-popup-card {
  width: 280px;
  margin-top: 14px;
  background: var(--popup-bg);
  border-radius: 18px;
  padding: 18px 16px 20px;
  text-align: left;
}

.series-popup-media {
  width: 100%;
  height: 118px;
  overflow: hidden;
  margin-bottom: 14px;
}

.series-popup-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.series-popup-card h3,
.series-popup-card p {
  margin: 0 0 8px;
}

.series-popup-card h3,
.series-popup-card .popup-color {
  font-size: 16px;
  font-weight: 700;
}

.series-popup-card .popup-spec,
.series-popup-card .popup-note {
  font-size: 12px;
  line-height: 1.4;
}

.series-popup-card .popup-note {
  color: var(--muted);
  margin-top: 10px;
}

.meta-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 68px;
}

.meta-card {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.meta-card h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.meta-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 14px;
}

@media (max-width: 1100px) {
  .topbar-inner,
  .topbar-right {
    flex-direction: column;
    align-items: flex-start;
  }

  .series-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meta-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topnav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .brandmark img {
    width: 220px;
  }

  .series-rail,
  .meta-section {
    grid-template-columns: 1fr;
  }
}
