:root {
  color-scheme: light;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  color: #19271d;
  background: #f4f6f2;
  --ink: #19271d;
  --muted: #58665b;
  --line: #dfe6dd;
  --green: #2b5a35;
  --paper: #fff;
}

*, *::before, *::after { box-sizing: border-box; }

body { margin: 0; min-width: 0; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid #427d44;
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.container {
  width: min(100%, 90rem);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4.44vw, 4rem);
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 4rem;
  gap: .75rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -.04em;
  white-space: nowrap;
}

.wordmark-mark {
  display: block;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
}

.wordmark-accent { color: var(--green); }

.beta-notice {
  display: flex;
  align-items: baseline;
  justify-self: center;
  gap: .5rem;
  margin: 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
}

.beta-label {
  flex: none;
  padding: .15rem .45rem;
  border-radius: .35rem;
  color: #315b36;
  background: #e9f2e1;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.catalog-status {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .35rem .65rem;
  border: 1px solid #d5e3c8;
  border-radius: 2rem;
  color: #315b36;
  background: #edf5e4;
  font-size: .875rem;
  font-weight: 600;
  white-space: nowrap;
}

.catalog-status::before {
  content: "";
  width: .42rem;
  height: .42rem;
  border-radius: 50%;
  background: #427d44;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: 13.5rem;
  margin-top: 1.25rem;
  padding: 2rem clamp(1.25rem, 3.4vw, 3.5rem);
  overflow: hidden;
  border: 1px solid #233a28;
  border-radius: 1rem;
  color: #f7fbf4;
  background: #07170c;
}

.hero-image {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: 72%;
  height: 100%;
  object-fit: cover;
  object-position: right 54%;
  mask-image: linear-gradient(90deg, transparent, #000 35%);
}

.hero-copy { max-width: 34rem; }

.hero h1 {
  margin: 0;
  font-size: clamp(2.25rem, 4.3vw, 3.875rem);
  font-weight: 730;
  line-height: 1.04;
  letter-spacing: -.055em;
}

.hero p {
  max-width: 25rem;
  margin: .85rem 0 0;
  color: #d0dfcf;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .875rem;
  margin: .875rem 0 1.4rem;
}

.metric {
  min-width: 0;
  padding: .8rem 1.125rem;
  border: 1px solid var(--line);
  border-radius: .8rem;
  background: var(--paper);
  box-shadow: 0 1px 2px #21322508;
}

.metric-bundle {
  border-color: #d5e3c8;
  background: #edf5e4;
}

.metric dt {
  color: #3a5440;
  font-size: .875rem;
  font-weight: 650;
}

.metric dd { margin: 0; }

.metric .metric-price {
  margin-top: .12rem;
  font-size: 1.875rem;
  font-weight: 720;
  letter-spacing: -.04em;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.metric-unit {
  color: #4f6652;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: 0;
}

.metric .metric-detail {
  margin-top: .13rem;
  color: var(--muted);
  font-size: .875rem;
}

.offers { padding-bottom: 1.5rem; }

.offers-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .8rem;
}

.offers-heading h2 {
  margin: 0;
  font-size: 1.625rem;
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: -.04em;
}

.offers-heading p {
  margin: .3rem 0 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.45;
}

.offers-status { display: flex; align-items: center; gap: .6rem; }
.results-count { font-weight: 650; white-space: nowrap; }
.offers-status .results-count { margin: 0; }

.catalog {
  border: 1px solid var(--line);
  border-radius: .875rem;
  background: var(--paper);
  box-shadow: 0 2px 6px #263b2808;
}

.price-sections {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .75rem 1rem 0;
}

.price-sections a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 2.25rem;
  padding: .3rem .7rem;
  border: 1px solid var(--line);
  border-radius: .5rem;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
}

.price-sections a[href="#on-sale"] { background: #eff6e9; color: var(--green); }
.price-sections a:hover { border-color: #a7bba4; background: #e9f2e5; }

.price-sections [data-section-count] {
  padding: .1rem .38rem;
  border-radius: 1rem;
  background: #e6ede3;
  font-size: .8125rem;
  font-variant-numeric: tabular-nums;
}

.catalog-toolbar, .catalog-filters {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.catalog-toolbar {
  padding: .75rem 1rem;
}

.catalog-filters { flex: 1; min-width: 0; }

.pack-filter {
  display: flex;
  flex: none;
  gap: .125rem;
  padding: .1875rem;
  border: 1px solid #e9eee6;
  border-radius: .625rem;
  background: #f1f4ef;
}

.pack-filter button {
  min-height: 2.125rem;
  padding: .3rem .75rem;
  color: #46574a;
  background: transparent;
  border: 1px solid transparent;
  border-radius: .45rem;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}

.pack-filter button:hover { color: var(--ink); background: #e5ebe2; }

.pack-filter button[aria-pressed="true"] {
  color: #fcfdfb;
  background: #284531;
  border-color: #284531;
  box-shadow: 0 1px 2px #263b281f;
}

.select-wrap, .search-control { position: relative; }

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1rem;
  width: .42rem;
  height: .42rem;
  border-right: 1.5px solid #5d6a5d;
  border-bottom: 1.5px solid #5d6a5d;
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-wrap select, .search-control input {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid #dce4db;
  border-radius: .5rem;
  color: var(--ink);
  background: var(--paper);
  font-size: .875rem;
}

.select-wrap select {
  appearance: none;
  padding: .35rem 2.125rem .35rem .7rem;
}

.select-wrap select:disabled {
  color: #677568;
  background: #f4f6f2;
  cursor: default;
}

.search-control { flex: 1 1 15rem; min-width: 0; }
.catalog-filters .select-wrap { flex: 0 0 8.5rem; min-width: 0; }
.catalog-filters .sort-control { flex-basis: 10.75rem; }

.search-control input { padding: .35rem .75rem .35rem 2.3rem; }
.search-control input::placeholder { color: #657367; opacity: 1; }

.search-icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: .85rem;
  width: .7rem;
  height: .7rem;
  border: 1.5px solid #627164;
  border-radius: 50%;
  transform: translateY(-60%);
  pointer-events: none;
}

.search-icon::after {
  content: "";
  position: absolute;
  top: .49rem;
  left: .49rem;
  width: .36rem;
  height: 1.5px;
  border-radius: 1px;
  background: #627164;
  transform: rotate(45deg);
  transform-origin: left center;
}

.clear-filters {
  flex: none;
  min-height: 2rem;
  padding-inline: .2rem;
  border: 0;
  border-radius: .4rem;
  background: transparent;
  color: var(--green);
  font-size: .875rem;
  font-weight: 650;
}

.clear-filters:hover { text-decoration: underline; text-underline-offset: .2em; }

.offer-section { scroll-margin-top: .75rem; }

.offer-section h3 {
  margin: 0;
  padding: .75rem 1rem;
  border-top: 1px solid var(--line);
  background: #f0f3ee;
  font-size: 1rem;
}

#on-sale h3 { background: #e7f1e1; color: #264c2f; }

.section-empty {
  margin: 0;
  padding: .9rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .875rem;
}

.offer-table {
  width: 100%;
  border-spacing: 0;
  text-align: left;
}

.offer-table th, .offer-table td {
  padding: .65rem .8rem;
  border-top: 1px solid #e7ece5;
}

.offer-table th:first-child, .offer-table td:first-child { padding-left: 1rem; }
.offer-table th:last-child, .offer-table td:last-child { padding-right: 1rem; }

.offer-table th {
  color: #485c4b;
  background: #f5f7f3;
  font-size: .875rem;
  font-weight: 650;
  white-space: nowrap;
}

.offer-table th:last-child { width: 9rem; }
.offer-table tbody tr:hover { background: #fafcf9; }
.offer-section:last-child tr:last-child td:first-child { border-bottom-left-radius: .875rem; }
.offer-section:last-child tr:last-child td:last-child { border-bottom-right-radius: .875rem; }

.product { display: flex; align-items: center; gap: .7rem; }

.swatch {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid #19271d22;
  border-radius: .55rem;
  box-shadow: inset 0 0 0 1px #fff3;
}

.swatch::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  border: 1.5px solid #ffffff8c;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffffa6 0 23%, transparent 29% 51%, #ffffff69 56% 63%, transparent 69%);
  box-shadow: 0 0 0 1px #15261726;
}

.product-name { display: block; font-weight: 650; line-height: 1.25; }

.product-color, .pack-total, .price-note {
  display: block;
  margin-top: .15rem;
  color: var(--muted);
  font-size: .875rem;
  white-space: normal;
}

.pack-total:empty { display: none; }
.price-note { font-weight: 400; }

.material-badge {
  display: inline-block;
  padding: .22rem .55rem;
  border-radius: .35rem;
  background: #e9f2e1;
  color: #315b36;
  font-size: .875rem;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}

.material-badge[data-material="PETG"] { color: #34577d; background: #e8eff9; }
.pack-cell { font-size: .9375rem; white-space: nowrap; }
.normal-cell, .total-cell, .unit-cell { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.unit-cell { color: var(--green); }

.retailer-actions {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
}

.deal-link {
  color: var(--green);
  font-size: .875rem;
  text-underline-offset: .15em;
  white-space: nowrap;
}

.retailer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.125rem;
  min-width: 6.75rem;
  padding: .25rem .65rem;
  border: 1px solid #dce5d9;
  border-radius: .45rem;
  color: #254a2d;
  background: #fff;
  font-size: .875rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.retailer-link:hover { border-color: #9fba9c; background: #edf5e8; }

.no-script {
  padding: 1.75rem 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.catalog-note { margin: .85rem 0 0; color: var(--muted); font-size: .875rem; line-height: 1.55; }

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-terms { padding-block: 1.5rem 2rem; }
.footer-terms h2 { margin: 0; font-size: 1.125rem; }
.footer-terms h3 { margin: 1rem 0 .35rem; font-size: .9375rem; }
.footer-terms p {
  max-width: 76ch;
  margin: 0;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.6;
}

@media (max-width: 69rem) {
  .catalog-toolbar { flex-wrap: wrap; }
  .catalog-filters { flex-basis: 100%; }
}

@media (max-width: 55rem) {
  .hero-copy { max-width: 62%; }
  .offer-table th, .offer-table td { padding-inline: .55rem; }
  .product { gap: .5rem; }
  .swatch { width: 1.875rem; height: 1.875rem; }
  .retailer-link { min-width: 0; }
}

@media (max-width: 44rem) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: .5rem;
    padding-block: .65rem;
  }

  .catalog-status { grid-column: 2; grid-row: 1; }
  .beta-notice { grid-column: 1 / -1; grid-row: 2; justify-self: start; }
  .hero { min-height: 11.5rem; margin-top: 1rem; }
  .hero-image { width: 74%; opacity: .82; mask-image: linear-gradient(90deg, transparent, #000 56%); }
  .hero-copy { max-width: 75%; }
  .hero p { font-size: 1rem; }
  .metrics { gap: .5rem; margin-bottom: 1.25rem; }
  .metric { padding: .7rem .65rem; }
  .metric .metric-price { font-size: 1.5rem; }
  .offers-status { align-items: end; flex-direction: column; gap: 0; }
  .catalog-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-control { grid-column: 1 / -1; }
}

@media (max-width: 52rem) {
  .offer-table, .offer-table tbody { display: block; }
  .offer-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .offer-table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: .8rem .45rem;
    padding: .95rem 1rem;
    border-top: 1px solid var(--line);
  }

  .offer-table tbody td { padding: 0; border: 0; }
  .offer-table .product-cell { grid-column: span 2; }
  #on-sale .offer-table tbody tr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #on-sale .product-cell { grid-column: auto; }
  .material-cell { justify-self: end; }
  .offer-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .18rem;
    color: var(--muted);
    font-size: .875rem;
    font-weight: 400;
  }

  .retailer-cell { grid-column: 1 / -1; }
  .retailer-actions { display: flex; }
  .retailer-link { width: 100%; min-height: 2.5rem; }
}

@media (max-width: 30rem) {
  .header-inner { min-height: 3.75rem; }
  .wordmark { font-size: 1.125rem; }
  .wordmark-mark { width: 2.5rem; height: 2.5rem; }
  .hero { padding-block: 1.35rem 7.65rem; }
  .hero-copy { max-width: 100%; }
  .hero-image {
    inset: auto 0 0 auto;
    width: 130%;
    height: 8.25rem;
    opacity: 1;
    mask-image: linear-gradient(180deg, transparent, #000 22%);
  }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-bundle { grid-column: 1 / -1; }
  .catalog-toolbar, .price-sections, .offer-section h3, .section-empty { padding-inline: .7rem; }
  .pack-filter button { padding-inline: .5rem; }
  .offer-table tbody tr { padding-inline: .7rem; }
}
