:root {
  --ink: #141414;
  --muted: #66625d;
  --line: #dedbd5;
  --paper: #f7f4ee;
  --surface: #ffffff;
  --accent: #176b87;
  --accent-strong: #0f4f63;
  --clay: #b65f46;
  --green: #486b4b;
  --shadow: 0 18px 48px rgba(26, 23, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(20, 20, 20, 0.1);
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

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

.nav {
  justify-content: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
}

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

.cart-button,
.primary-link,
.checkout-button,
.filter-chip,
.icon-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.cart-button strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.78rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(24px, 5vw, 72px);
  min-height: min(720px, calc(100vh - 68px));
  padding: clamp(32px, 6vw, 82px) clamp(18px, 4vw, 52px);
  align-items: center;
}

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

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.filters h2,
.checkout-band h2,
.cart-head h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 4.8rem, 5.4rem);
  line-height: 0.95;
}

.hero p:not(.eyebrow) {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

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

.hero-media {
  overflow: hidden;
  height: clamp(360px, 64vh, 680px);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.store-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 28px;
  padding: 34px clamp(18px, 4vw, 52px) 56px;
}

.filters {
  position: sticky;
  top: 84px;
  align-self: start;
  display: grid;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.filters h2,
.checkout-band h2,
.cart-head h2 {
  font-size: 1.55rem;
}

.search-box,
.product-toolbar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.search-box input,
.product-toolbar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.search-box input {
  padding: 0 12px;
}

.product-toolbar select {
  padding: 0 34px 0 12px;
}

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

.filter-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  background: #f3f0ea;
  color: var(--ink);
  text-align: left;
}

.filter-chip[aria-pressed="true"] {
  background: var(--green);
  color: #fff;
}

.product-area {
  min-width: 0;
}

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

.product-toolbar p {
  margin: 0;
  color: var(--muted);
}

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

.product-card {
  display: grid;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-image {
  aspect-ratio: 4 / 3;
  background: #e8e1d7;
}

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

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

.product-meta h3 {
  margin: 0;
  font-size: 1.02rem;
}

.product-meta strong {
  white-space: nowrap;
}

.product-body p {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.tag {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
}

.add-button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

.checkout-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: 28px;
  margin: 0 clamp(18px, 4vw, 52px) 54px;
  padding: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.checkout-band p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  justify-content: end;
  background: rgba(20, 20, 20, 0.36);
}

.cart-drawer.is-open {
  display: flex;
}

.cart-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, 100%);
  height: 100%;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  width: 42px;
  background: #f3f0ea;
  color: var(--ink);
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 18px 22px;
}

.cart-empty {
  margin: 0;
  color: var(--muted);
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line h3,
.cart-line p {
  margin: 0;
}

.cart-line p {
  color: var(--muted);
  font-size: 0.9rem;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.cart-footer {
  display: grid;
  gap: 16px;
  padding: 18px 22px 22px;
  border-top: 1px solid var(--line);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.12rem;
}

.checkout-button {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero,
  .store-shell,
  .checkout-band {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

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

@media (max-width: 680px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero {
    padding-top: 24px;
  }

  .hero h1 {
    font-size: 2.65rem;
    line-height: 1;
  }

  .hero-media {
    height: 300px;
  }

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

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

