:root {
  --ink: #11110f;
  --muted: #6f6c65;
  --line: #e4e0d8;
  --paper: #faf8f4;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Neue", Arial, "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: var(--paper);
  word-break: keep-all;
}

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

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

.products-shell {
  min-height: 100vh;
}

.products-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 34px;
  background: rgba(250, 248, 244, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.products-brand {
  display: inline-flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.05;
  text-transform: uppercase;
}

.products-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.products-main {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0 72px;
}

.products-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 18px;
  margin-bottom: 20px;
}

.hero-copy-card,
.hero-side-card {
  border: 1px solid var(--line);
  background: var(--white);
}

.hero-copy-card {
  padding: 28px;
}

.hero-eyebrow {
  margin: 0 0 12px;
  color: #6c5543;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-copy-card h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  word-break: keep-all;
}

.hero-copy-card p {
  margin: 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.hero-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-inline-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #f7f4ef;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

.hero-side-card {
  padding: 24px;
  display: grid;
  gap: 14px;
}

.hero-side-section + .hero-side-section {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-side-label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

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

.hero-quick-link {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-align: left;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.hero-quick-link:hover {
  transform: translateY(-1px);
  border-color: #cfc7bb;
  background: #f8f5ef;
}

.hero-note-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-note-list li {
  position: relative;
  padding-left: 14px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.hero-note-list li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 5px;
  height: 5px;
  background: #6c5543;
  border-radius: 50%;
}

.controls-card {
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--white);
}

.controls-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.search-box,
.sort-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.search-box span,
.sort-box span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.search-box input,
.sort-box select {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
}

.filter-group + .filter-group {
  margin-top: 14px;
}

.filter-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
}

.chip.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

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

.product-card {
  position: relative;
  display: block;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: #cfc7bb;
  box-shadow: 0 18px 36px rgba(17, 17, 15, .08);
}

.product-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #ece6dc, #bba992);
  overflow: hidden;
}

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

.badge-stack {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  background: rgba(17, 17, 15, .76);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-card-body {
  padding: 18px;
}

.product-card-brand {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.product-card-name {
  min-height: 48px;
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.45;
}

.product-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.product-card-meta span {
  color: #a06d50;
  font-weight: 900;
}

.product-card-meta strong {
  font-size: 18px;
}

.empty-state {
  padding: 48px 18px;
  border: 1px dashed var(--line);
  background: var(--white);
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}

@media (max-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .products-header {
    padding: 14px 18px;
  }

  .products-main {
    width: min(100% - 24px, 1280px);
    padding: 22px 0 56px;
  }

  .products-hero,
  .controls-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .products-nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  .hero-copy-card,
  .hero-side-card,
  .controls-card {
    padding: 18px;
  }

  .hero-copy-card h1 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .hero-copy-card p {
    font-size: 15px;
  }

  .hero-inline-meta {
    gap: 8px;
  }

  .hero-inline-meta span {
    min-height: 32px;
    font-size: 11px;
  }

  .hero-quick-grid {
    grid-template-columns: 1fr;
  }

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