:root {
  --color-bg: #f5f7fa;
  --color-surface: #fff;
  --color-text: #111827;
  --color-muted: #667085;
  --color-line: #d7dee8;
  --color-brand: #0f766e;
  --color-brand-dark: #0b4f4a;
  --color-accent: #2563eb;
  --color-warn: #c2410c;
  --shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--color-text);
  background: var(--color-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.6;
}

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

button,
input,
select {
  font: inherit;
}

.site-header,
.section,
.site-footer,
.detail-hero,
.detail-section {
  width: min(100% - 32px, 1160px);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 20px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: #0b1220;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 800;
}

.nav a[aria-current="page"] {
  color: var(--color-brand);
}

.eyebrow,
.sku {
  margin: 0 0 8px;
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 14px;
  font-size: 28px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.section-lead,
.card-copy,
.detail-copy,
.site-footer {
  color: var(--color-muted);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 900;
}

.button-secondary {
  border: 1px solid var(--color-line);
  background: #fff;
  color: var(--color-brand-dark);
}

.filter-panel,
.product-card,
.detail-panel,
.info-panel {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow);
}

.spec-strip dt,
.spec-list dt {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
}

.spec-strip dd,
.spec-list dd {
  margin: 0;
  font-weight: 900;
}

.section {
  padding: 30px 0;
}

.search-section {
  padding-top: 8px;
}

.filter-panel {
  padding: 20px;
}

.filter-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.filter-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(130px, 1fr));
  gap: 12px;
  align-items: end;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
}

.checkbox-field {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-brand);
}

.field input:focus,
.field select:focus {
  outline: 3px solid rgba(15, 118, 110, 0.16);
  border-color: var(--color-brand);
}

.search-button,
.reset-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.search-button {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: #fff;
}

.reset-button {
  background: #fff;
  color: var(--color-muted);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.count {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 900;
}

.product-grid,
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.product-card.is-discontinued {
  border-color: #e4d8c8;
  background: #fffdfa;
}

.product-card.is-out-of-stock {
  border-color: #dbe3ef;
  background: #fbfcff;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.45);
  box-shadow: 0 22px 44px rgba(17, 24, 39, 0.12);
}

.product-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.status-badge,
.detail-status {
  width: fit-content;
  border-radius: 999px;
  background: #fff7ed;
  color: var(--color-warn);
  font-weight: 900;
}

.status-badge {
  padding: 3px 8px;
  font-size: 12px;
}

.status-badge--stock {
  background: #eff6ff;
  color: #2563eb;
}

.detail-status {
  margin: 0;
  padding: 5px 10px;
  font-size: 13px;
}

.price {
  color: var(--color-brand-dark);
  font-weight: 900;
}

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

.spec-strip div {
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
}

.tag-row,
.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span,
.feature-row span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #e7f8f5;
  color: var(--color-brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.monitor-visual {
  display: grid;
  min-height: 250px;
  place-items: center;
  padding: 28px 18px 18px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.10), rgba(37, 99, 235, 0.08)),
    #eef3f8;
}

.monitor-visual.is-card {
  min-height: 190px;
  box-shadow: none;
}

.monitor-visual.is-hero {
  min-height: 360px;
  border-radius: 8px;
}

.monitor-screen {
  position: relative;
  width: min(82%, 360px);
  aspect-ratio: 16 / 9;
  border: 8px solid #111827;
  border-bottom-width: 16px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #111827, #243044 55%, #111827);
  box-shadow: 0 22px 36px rgba(15, 23, 42, 0.22);
}

.monitor-visual.is-wide .monitor-screen {
  width: min(92%, 470px);
  aspect-ratio: 21 / 9;
  border-radius: 16px;
}

.monitor-visual.is-compact .monitor-screen {
  width: min(74%, 320px);
  aspect-ratio: 16 / 10;
}

.screen-pill {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.screen-line {
  position: absolute;
  left: 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.screen-line-a {
  right: 30%;
  bottom: 42px;
}

.screen-line-b {
  right: 48%;
  bottom: 24px;
}

.screen-grid {
  position: absolute;
  right: 18px;
  bottom: 22px;
  width: 28%;
  height: 44%;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 18px 18px;
}

.monitor-neck {
  width: 58px;
  height: 42px;
  margin-top: -1px;
  background: linear-gradient(90deg, #111827, #2f3a4a, #111827);
}

.monitor-base {
  width: 160px;
  height: 14px;
  border-radius: 999px 999px 8px 8px;
  background: #111827;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 28px;
  align-items: start;
  padding: 28px 0 20px;
}

.detail-summary {
  display: grid;
  gap: 18px;
  align-content: start;
  padding-top: 8px;
}

.detail-price {
  font-size: 28px;
  font-weight: 900;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.summary-strip div,
.info-panel {
  padding: 18px;
}

.summary-strip div {
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
}

.summary-strip span {
  display: block;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 900;
}

.summary-strip strong {
  font-size: 18px;
}

.detail-panel {
  padding: 22px;
}

.detail-panel select {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
}

.detail-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 18px;
  padding: 18px 0;
}

.info-panel ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

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

.spec-list div {
  padding: 12px;
  border-radius: 8px;
  background: #f8fafc;
}

.empty-message {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: #fff;
  color: var(--color-muted);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 34px 0 46px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .detail-hero,
  .detail-section {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
  }

  .detail-hero {
    padding-top: 16px;
  }

  .filter-grid,
  .product-grid,
  .related-grid,
  .summary-strip,
  .spec-list {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-checks {
    flex-direction: column;
  }

  .filter-buttons {
    width: 100%;
  }

  .search-button,
  .reset-button {
    flex: 1 1 150px;
  }

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .monitor-visual.is-hero {
    min-height: 280px;
  }
}
