:root {
  --ink: #161616;
  --muted: #696763;
  --line: #e7e0d8;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --soft: #f0ebe4;
  --accent: #9d2f35;
  --accent-dark: #241817;
  --green: #28724f;
  --blue: #245066;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 5vw;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.brand strong {
  font-size: 16px;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  padding: 8vh 5vw 9vh;
  overflow: hidden;
  color: white;
  background: #111;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.68), rgba(0,0,0,.24) 52%, rgba(0,0,0,.05));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4cbc4;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(46px, 7vw, 94px);
  line-height: .95;
  letter-spacing: 0;
}

.intro {
  max-width: 560px;
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary,
.secondary,
footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
}

.primary {
  background: white;
  color: #111;
}

.secondary {
  border-color: rgba(255,255,255,.72);
  color: white;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.category-strip div {
  padding: 22px 5vw;
  border-right: 1px solid var(--line);
}

.category-strip strong {
  display: block;
  font-size: 24px;
}

.category-strip span {
  color: var(--muted);
}

.filters {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 14px;
  padding: 22px 5vw;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  min-height: 46px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font: inherit;
}

.section {
  padding: 42px 5vw 64px;
}

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

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-title > p {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

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

.product-card {
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
}

.product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.45), rgba(0,0,0,.05)),
    repeating-linear-gradient(45deg, #f0ebe4, #f0ebe4 12px, #e4d8ce 12px, #e4d8ce 24px);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder {
  display: grid;
  place-items: center;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(36,24,23,.2);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  background: rgba(255,255,255,.48);
}

.image-stack {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.image-stack img,
.image-stack .placeholder {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.product-info {
  padding: 14px;
}

.product-info h3 {
  min-height: 44px;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.45;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.option-row {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.option-row span {
  color: var(--muted);
  font-size: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  min-width: 34px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
}

.code {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.price {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 800;
}

.available {
  color: var(--green);
  white-space: nowrap;
}

.store-band {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  padding: 48px 5vw;
  background: var(--accent-dark);
  color: white;
}

.store-band p,
footer p {
  max-width: 760px;
  line-height: 1.65;
  color: rgba(255,255,255,.78);
}

.store-band ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.9;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 5vw;
  background: #111;
  color: white;
}

footer p {
  margin: 8px 0 0;
}

footer a {
  align-self: center;
  background: white;
  color: #111;
}

@media (max-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .topbar,
  footer,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .hero {
    min-height: 76vh;
    padding-top: 34vh;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.78));
  }

  .category-strip,
  .filters,
  .store-band {
    grid-template-columns: 1fr;
  }

  .category-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-title > p {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .brand strong {
    white-space: normal;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary,
  .secondary {
    width: 100%;
  }
}
