:root {
  color-scheme: light;
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-soft: #f1f5f2;
  --surface-warm: #fff6ea;
  --text: #171d1b;
  --muted: #5d6763;
  --line: #dde2dd;
  --ink: #111817;
  --green: #187a55;
  --green-dark: #10563d;
  --blue: #225f9c;
  --coral: #b84f43;
  --amber: #a4621d;
  --violet: #6550a4;
  --shadow: 0 22px 60px rgba(28, 37, 34, 0.12);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

main,
.site-header,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-weight: 900;
}

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

.brand small,
.muted {
  color: var(--muted);
}

.top-nav,
.hero-actions,
.filter-tabs,
.resource-links,
.trust-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-nav a,
.button,
.filter,
.add-to-cart,
.quantity-controls button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
.add-to-cart {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.button.secondary {
  color: var(--green-dark);
}

.button.full {
  width: 100%;
}

.shop-hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 36px;
  align-items: center;
  padding: 44px 0 36px;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: 52px;
  line-height: 1.08;
}

.hero-lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.trust-row {
  margin-top: 24px;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  padding: 7px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.hero-media {
  position: relative;
  margin: 0;
  min-height: 420px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #d7ddd8;
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-media figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px 16px;
  color: var(--muted);
}

.hero-media figcaption strong {
  color: var(--text);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}

.stats-band div,
.shop-toolbar,
.cart-panel,
.bundle-section,
.process-section,
.resource-strip,
.article-shell {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.stats-band div {
  padding: 16px;
}

.stats-band span,
.cart-line span,
.delivery,
.order-note {
  color: var(--muted);
}

.stats-band strong {
  display: block;
  margin-top: 4px;
}

.shop-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 18px;
  margin-bottom: 28px;
}

.search-box span,
.order-field span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.search-box input,
.order-field input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.filter {
  color: var(--muted);
}

.filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.section-heading {
  margin: 0 0 18px;
}

h2,
h3 {
  line-height: 1.2;
}

h2 {
  margin: 0;
  font-size: 30px;
}

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

.product-card {
  display: grid;
  grid-template-rows: 190px 1fr;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

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

.product-body {
  display: flex;
  flex-direction: column;
  padding: 18px;
}

.product-topline,
.buy-row,
.cart-header,
.cart-total,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(24, 122, 85, 0.12);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.badge.site {
  background: rgba(34, 95, 156, 0.12);
  color: var(--blue);
}

.badge.care {
  background: rgba(184, 79, 67, 0.12);
  color: var(--coral);
}

.badge.paper {
  background: rgba(101, 80, 164, 0.12);
  color: var(--violet);
}

.delivery {
  font-size: 13px;
  font-weight: 800;
}

.product-card h3 {
  margin: 16px 0 8px;
  font-size: 22px;
}

.product-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.product-card ul {
  display: grid;
  gap: 7px;
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--muted);
}

.buy-row {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.buy-row strong {
  font-size: 22px;
}

.cart-panel {
  position: sticky;
  top: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.cart-header h2 {
  margin: 0;
}

.cart-count {
  border-radius: 999px;
  background: var(--surface-soft);
  padding: 6px 10px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.cart-items {
  display: grid;
  gap: 10px;
  min-height: 72px;
  margin: 18px 0;
}

.empty-cart {
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  text-align: center;
}

.cart-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-soft);
}

.cart-line strong,
.cart-line span {
  display: block;
}

.quantity-controls {
  display: grid;
  grid-template-columns: 32px 30px 32px;
  align-items: center;
  text-align: center;
}

.quantity-controls button {
  min-height: 32px;
  padding: 0;
}

.cart-total {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-bottom: 16px;
}

.cart-total strong {
  font-size: 26px;
}

.order-field {
  display: block;
  margin-bottom: 12px;
}

.order-note {
  margin: 12px 0 0;
  font-size: 13px;
}

.bundle-section,
.process-section,
.resource-strip {
  margin-top: 36px;
  padding: 24px;
}

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

.bundle-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
}

.bundle-grid span {
  color: var(--amber);
  font-size: 13px;
  font-weight: 900;
}

.bundle-grid h3 {
  margin: 10px 0 8px;
}

.bundle-grid p {
  color: var(--muted);
}

.bundle-grid strong {
  font-size: 24px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.process-list span {
  color: var(--green);
  font-weight: 900;
}

.process-list strong {
  display: block;
  margin-top: 10px;
}

.process-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.resource-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.resource-links a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 10px 12px;
  text-decoration: none;
  font-weight: 800;
}

.site-footer {
  min-height: 92px;
  color: var(--muted);
}

.hidden {
  display: none;
}

.article-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  padding: 24px;
  margin-top: 32px;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}

.article-nav {
  position: sticky;
  top: 18px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.article-nav a {
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--muted);
  background: var(--surface-soft);
}

.article-content {
  max-width: 760px;
}

.article-content h1 {
  margin: 0 0 12px;
  font-size: 38px;
  line-height: 1.12;
}

.article-content h2 {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.lead {
  color: var(--muted);
  font-size: 18px;
}

.callout {
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 14px 16px;
}

.code-block {
  position: relative;
  margin: 16px 0;
}

.terminal,
.code-block pre {
  overflow-x: auto;
  margin: 0;
  border-radius: 8px;
  background: #17211c;
  color: #d8f4dc;
  padding: 18px;
  font-size: 14px;
  line-height: 1.7;
}

.copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
}

.step-list {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.step-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 14px 16px;
}

@media (max-width: 1020px) {
  .shop-hero,
  .shop-layout,
  .article-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .cart-panel,
  .article-nav {
    position: static;
  }

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

@media (max-width: 760px) {
  main,
  .site-header,
  .site-footer {
    width: min(100% - 20px, 1180px);
  }

  .site-header,
  .resource-strip,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .top-nav,
  .hero-actions,
  .filter-tabs,
  .resource-links {
    width: 100%;
  }

  .top-nav a,
  .button,
  .filter,
  .resource-links a {
    flex: 1 1 auto;
  }

  .shop-hero {
    min-height: 0;
    padding-top: 24px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-media,
  .hero-media img {
    min-height: 300px;
  }

  .shop-toolbar,
  .product-grid,
  .stats-band,
  .bundle-grid,
  .process-list,
  .article-nav {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-rows: 180px 1fr;
    min-height: 0;
  }

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