:root {
  --ink: #161616;
  --muted: #626262;
  --line: #ded9d0;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --accent: #006d77;
  --accent-strong: #004f59;
  --warm: #e9c46a;
  --rose: #d96570;
  --shadow: 0 16px 40px rgba(22, 22, 22, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
select {
  font: inherit;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
}

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

.nav a:hover {
  color: var(--accent-strong);
}

.shop-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  min-height: calc(100svh - 67px);
  padding: clamp(34px, 7vw, 86px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 620px;
}

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

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

h1 {
  margin: 0;
  font-size: clamp(52px, 9vw, 118px);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-text {
  max-width: 520px;
  margin: 24px 0 30px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
}

.primary-link,
.buy-button,
.filter {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.primary-link:hover,
.buy-button:hover {
  background: var(--accent-strong);
}

.hero-product {
  justify-self: end;
  width: min(100%, 780px);
  aspect-ratio: 1.12;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-product img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  padding: 0 14px;
  color: var(--ink);
  background: #f4f0e8;
  font-weight: 750;
}

.filter.active {
  color: #fff;
  background: var(--accent);
}

.sort-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

select {
  height: 42px;
  padding: 0 36px 0 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalog {
  padding: clamp(42px, 6vw, 72px) clamp(18px, 5vw, 72px);
}

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

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

.product {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(22, 22, 22, 0.04);
}

.product-photo {
  aspect-ratio: 1.1;
  background-image: url("./assets/tshirt-catalog.png");
  background-size: 300% 200%;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
}

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

h3 {
  margin: 0 0 7px;
  font-size: 20px;
  line-height: 1.15;
}

.product-note {
  margin: 0;
  min-height: 43px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

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

.price {
  font-size: 20px;
  font-weight: 850;
}

.sizes {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.buy-button {
  width: 100%;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.info-band,
.contact-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.5fr) minmax(0, 1fr);
  gap: 28px;
  padding: clamp(34px, 5vw, 62px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.info-band {
  background: #f1f7f6;
}

.contact-band {
  background: var(--ink);
  color: #fff;
}

.info-band p,
.contact-band a {
  align-self: end;
  margin: 0;
  max-width: 720px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.42;
}

.contact-band a {
  color: var(--warm);
  font-weight: 800;
}

@media (max-width: 900px) {
  .shop-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
  }

  .hero-product {
    justify-self: stretch;
  }

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

@media (max-width: 640px) {
  .topbar,
  .toolbar,
  .section-heading,
  .info-band,
  .contact-band {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    position: static;
  }

  .nav {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .toolbar,
  .section-heading {
    display: grid;
  }

  .sort-label {
    justify-content: space-between;
  }

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

  .info-band,
  .contact-band {
    grid-template-columns: 1fr;
  }
}
