:root {
  --bg: #f4efe8;
  --sand: #d6c3ad;
  --ink: #1e1712;
  --muted: #6d6055;
  --line: rgba(58, 40, 24, 0.12);
  --panel: rgba(255, 252, 247, 0.88);
  --panel-strong: rgba(255, 250, 244, 0.96);
  --accent: #9c5d39;
  --accent-deep: #6d3820;
  --display: "Baskerville", "Palatino Linotype", "Book Antiqua", serif;
  --ui: "Avenir Next", "Trebuchet MS", sans-serif;
  --shadow: 0 22px 60px rgba(66, 40, 18, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--ui);
  background:
    linear-gradient(180deg, rgba(156, 93, 57, 0.08), transparent 20%),
    radial-gradient(circle at top right, rgba(95, 140, 147, 0.12), transparent 24%),
    linear-gradient(180deg, #efe6da 0%, var(--bg) 46%, #f8f3ec 100%);
}

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

code {
  font-family: "SFMono-Regular", Consolas, monospace;
}

.shell {
  width: min(1460px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 22px 0 52px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--display);
  line-height: 0.98;
}

.masthead,
.toolbar,
.product-card,
.detail-panel,
.brand-note,
.summary-chip,
.featured-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 18px;
  border-radius: 30px;
  padding: 34px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.masthead::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(156, 93, 57, 0.16), transparent 72%);
}

.brand-block h1 {
  font-size: clamp(2.8rem, 4vw, 5.3rem);
  max-width: 11ch;
}

.intro {
  max-width: 60ch;
  color: var(--muted);
  line-height: 1.65;
  margin: 18px 0 0;
}

.masthead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 252, 247, 0.82);
  border: 1px solid var(--line);
}

.brand-note {
  border-radius: 24px;
  padding: 22px;
  line-height: 1.6;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(239, 231, 220, 0.88)),
    var(--panel-strong);
}

.featured {
  margin-bottom: 24px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 2vw, 2.8rem);
}

.section-heading.compact h2 {
  font-size: 1.75rem;
}

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

.featured-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 24px;
}

.featured-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.featured-copy {
  padding: 16px;
}

.featured-copy h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.featured-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.toolbar {
  display: flex;
  gap: 16px;
  align-items: end;
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 18px;
}

.toolbar-field {
  display: grid;
  gap: 8px;
}

.toolbar-field.grow {
  flex: 1;
}

.toolbar-field label {
  font-size: 0.82rem;
  color: var(--muted);
}

.toolbar-field input,
.toolbar-field select {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 251, 0.94);
  padding: 0 14px;
  color: var(--ink);
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
}

.catalog-sidebar {
  min-width: 0;
}

.summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.summary-chip,
.spec-chip,
.model-tag,
.series-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(156, 93, 57, 0.09);
  font-size: 0.78rem;
}

.product-grid {
  display: grid;
  gap: 14px;
}

.product-card {
  border-radius: 24px;
  overflow: hidden;
}

.product-card.is-active {
  outline: 2px solid rgba(156, 93, 57, 0.34);
}

.product-button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.product-media {
  background: linear-gradient(135deg, rgba(116, 78, 49, 0.16), rgba(77, 136, 145, 0.08));
}

.product-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.product-copy {
  padding: 16px;
}

.product-topline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.product-copy h3 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.product-subtitle,
.muted,
.spec-card p,
.asset-card p,
.download-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.detail-panel {
  border-radius: 30px;
  padding: 22px;
  min-height: 720px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(245, 238, 228, 0.92)),
    var(--panel-strong);
}

.placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  height: 100%;
  padding: 60px 20px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
}

.hero-stage {
  border-radius: 26px;
  overflow: hidden;
  background: #e8ded2;
  min-height: 320px;
}

.hero-stage img,
.hero-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.detail-copy h2 {
  font-size: clamp(2.1rem, 3vw, 3.4rem);
}

.detail-actions,
.download-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-section {
  margin-top: 24px;
}

.detail-section h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

.spec-grid,
.asset-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.spec-card,
.asset-card,
.download-card,
.manual-card {
  border-radius: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.92);
}

.spec-card strong,
.asset-card strong,
.download-card strong,
.manual-card strong {
  display: block;
  margin-bottom: 8px;
}

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

.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 253, 249, 0.82);
  border: 1px solid var(--line);
}

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

.gallery-item img,
.gallery-item video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-caption {
  padding: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.manual-stack {
  display: grid;
  gap: 12px;
}

.manual-card iframe {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  margin-top: 12px;
}

@media (max-width: 1160px) {
  .masthead,
  .catalog-layout,
  .detail-hero,
  .spec-grid,
  .asset-grid,
  .download-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .shell {
    width: min(100vw - 18px, 100%);
    padding-top: 10px;
  }

  .masthead,
  .toolbar,
  .detail-panel {
    padding: 18px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .featured-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .brand-block h1 {
    max-width: none;
  }
}
