:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #607064;
  --line: #d9e1d7;
  --paper: #fbfcf7;
  --panel: #ffffff;
  --fern: #1d6c47;
  --leaf: #2c8b57;
  --mint: #dff1e2;
  --gold: #c68b2d;
  --clay: #b85f3d;
  --sky: #dceaf4;
  --shadow: 0 18px 50px rgba(29, 54, 39, .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,
textarea {
  font: inherit;
}

button,
a.button {
  cursor: pointer;
}

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

.app-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  background: rgba(251, 252, 247, .94);
  border-bottom: 1px solid rgba(23, 33, 27, .08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: white;
  background: var(--fern);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: .78rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

nav a,
.icon-button {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #354137;
}

nav a:hover,
.icon-button:hover {
  border-color: var(--line);
  background: white;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
}

.icon-button b {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 99px;
  color: white;
  background: var(--clay);
  font-size: .78rem;
}

.hero {
  position: relative;
  min-height: 590px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #203227;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 22, 15, .78), rgba(12, 22, 15, .32) 48%, rgba(12, 22, 15, .08));
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 0 72px;
  color: white;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
  line-height: .9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.5;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  color: white;
  background: var(--fern);
}

.button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .14);
}

.button.full {
  width: 100%;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: -34px;
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.metrics article {
  padding: 20px;
  background: white;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: 1.55rem;
}

.metrics span {
  margin-top: 4px;
  color: var(--muted);
}

.workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: start;
  padding: 44px 0;
}

.filters,
.cart-panel {
  position: sticky;
  top: 88px;
}

.filters,
.cart-panel,
.supplier-card,
.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(29, 54, 39, .06);
}

.filters,
.cart-panel {
  padding: 18px;
}

.panel-title,
.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

h2 {
  margin: 0;
  font-size: 1.35rem;
}

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

.panel-title button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  padding: 8px 10px;
}

label,
fieldset {
  display: grid;
  gap: 7px;
  margin: 18px 0 0;
  color: #334039;
  font-size: .88rem;
  font-weight: 700;
}

fieldset {
  padding: 0;
  border: 0;
}

legend {
  padding: 0;
  margin-bottom: 8px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input,
select {
  min-height: 42px;
  padding: 0 11px;
}

textarea {
  padding: 10px 11px;
  resize: vertical;
}

input[type="range"] {
  padding: 0;
}

.range-readout {
  color: var(--leaf);
  font-weight: 800;
}

.catalog {
  min-width: 0;
}

.catalog-head {
  margin-bottom: 16px;
}

.sync-status {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}

.catalog-head label {
  min-width: 190px;
  margin: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 14px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.plant-visual {
  min-height: 118px;
  display: grid;
  align-content: end;
  padding: 14px;
  background: linear-gradient(135deg, var(--mint), var(--sky));
  border-bottom: 1px solid var(--line);
}

.plant-visual span {
  display: block;
  width: 36%;
  min-width: 86px;
  height: 54px;
  border-left: 10px solid var(--leaf);
  border-right: 6px solid #6aa66a;
  transform: skew(-10deg);
  opacity: .95;
}

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

.meta-row,
.price-row,
.cart-line,
.route-row,
.totals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.meta-row {
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef6ee;
  color: var(--fern);
  font-size: .76rem;
  font-weight: 800;
}

.badge.amazon {
  background: #fff0cf;
  color: #7a5200;
}

.badge.etsy {
  background: #f7e3d7;
  color: #8a3f22;
}

.product-body p,
.supplier-card p,
.confirmation p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.specs span {
  padding: 5px 7px;
  border-radius: 6px;
  background: #f3f6f1;
  color: #4a5a4f;
  font-size: .76rem;
  font-weight: 700;
}

.price-row strong {
  font-size: 1.25rem;
}

.cart-items {
  display: grid;
  gap: 10px;
  min-height: 78px;
  margin-top: 16px;
}

.empty {
  display: grid;
  place-items: center;
  min-height: 78px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.cart-line {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-line small {
  display: block;
  color: var(--muted);
}

.qty {
  display: inline-grid;
  grid-template-columns: 30px 34px 30px;
  align-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.qty button {
  width: 30px;
  height: 30px;
  border: 0;
  background: #f6f8f3;
}

.fulfillment {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.route-row {
  padding: 9px 10px;
  border-radius: 8px;
  background: #f6f8f3;
  color: #435047;
  font-size: .88rem;
}

.checkout {
  margin-top: 8px;
}

.totals {
  margin: 16px 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.totals.compact {
  margin: 8px 0;
  padding-top: 0;
  border-top: 0;
  color: var(--muted);
}

.totals.due {
  font-size: 1.05rem;
}

.confirmation {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #bad7bf;
  border-radius: 8px;
  background: #eff9ef;
}

.suppliers {
  padding: 8px 0 56px;
}

.supplier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.supplier-card {
  padding: 18px;
}

.supplier-card strong {
  display: block;
  margin-top: 14px;
  color: var(--fern);
}

@media (max-width: 1120px) {
  .workspace {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .cart-panel {
    position: static;
    grid-column: 1 / -1;
  }

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

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 24px, 1440px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 620px;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(12, 22, 15, .82), rgba(12, 22, 15, .2));
  }

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

  .metrics article {
    padding: 14px;
  }

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

  .filters {
    position: static;
  }

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

  .catalog-head label {
    min-width: 0;
  }
}
