#main > .stm-catalog {
  --stm-deep: #29382d;
  --stm-light: #f7f4e9;
  --stm-soft: #d7dfc8;
  --stm-photo: #e8e4d3;
  --stm-rule: #aaa998;
  padding-block: clamp(42px, 7vw, 100px);
  background: var(--stm-deep);
  color: var(--stm-light);
}
#main > .stm-catalog::before {content: none}
.stm-catalog [hidden] {display: none !important}
.stm-catalog ::selection {background: var(--leaf); color: var(--stm-deep)}
.stm-catalog :focus-visible {outline-color: #daaa65}
.stm-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(24px, 4vw, 42px);
}
.stm-intro h2 {
  max-width: 11ch;
  font-size: clamp(45px, 6.5vw, 92px);
  letter-spacing: -.04em;
}
.stm-intro h2 em {color: var(--leaf)}
.stm-intro > p {max-width: 37ch; color: var(--stm-soft); padding-bottom: .2em}
.stm-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 0 16px;
  border-bottom: 1px solid #697463;
}
.stm-catalog button, .stm-picker select {font: inherit}
.stm-filters button, .stm-figure button {
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
}
.stm-filters button {
  min-height: 44px;
  padding: 5px clamp(10px, 1.5vw, 19px);
  border-color: #95a08d;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
}
.stm-filters button span {margin-left: .35em; font-variant-numeric: tabular-nums}
.stm-filters button:hover {border-color: var(--leaf)}
.stm-filters button[aria-pressed="true"] {background: var(--leaf); border-color: var(--leaf); color: var(--stm-deep)}
.stm-layout {padding-top: clamp(24px, 3vw, 36px)}
.stm-catalog[data-enhanced] .stm-layout {
  display: grid;
  grid-template-columns: minmax(150px, .75fr) minmax(0, 3fr);
  gap: clamp(18px, 3vw, 42px);
}
.stm-index ul {list-style: none; padding: 0; margin: 0}
.stm-index li {border-bottom: 1px solid #697463}
.stm-index a {
  display: block;
  padding: 8px 15px 8px 2px;
  color: var(--stm-soft);
  font-size: 14px;
  text-decoration: none;
}
.stm-index a:hover {color: var(--stm-light)}
.stm-index a[aria-current="true"] {color: var(--stm-light); font-weight: 700}
.stm-index a[aria-current="true"]::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-radius: 50%;
  background: var(--leaf);
  vertical-align: .1em;
}
.stm-catalog .stm-picker {display: none}
.stm-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 1fr);
  color: var(--ink);
  background: var(--stm-light);
  border-radius: 14px;
}
.stm-panel + .stm-panel {margin-top: 24px}
.stm-panel[data-category="other"] {grid-template-columns: minmax(0, 1fr)}
.stm-catalog[data-enhanced] .stm-panel {margin-top: 0}
.stm-panel[data-category="jelly"] {--stm-photo: #ecd9c9}
.stm-figure {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--stm-photo);
  border-radius: 14px 0 0 14px;
  color: var(--stm-deep);
}
.stm-image-window {
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  position: relative;
  flex: 1;
  min-height: clamp(270px, 32vw, 480px);
}
.stm-image-window::before {
  content: "";
  position: absolute;
  inset: 8% 8% 9%;
  border: 1px solid #9b8c6b62;
  border-radius: 48% 48% 3px 3px;
  pointer-events: none;
}
.stm-image-window img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding-block: 8px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.stm-figure figcaption, .stm-pack-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
  padding: 8px clamp(11px, 1.5vw, 22px);
  border-top: 1px solid var(--stm-rule);
  font-size: 13px;
}
.stm-figure figcaption {align-items: center; justify-content: space-between}
.stm-label-switch {display: flex; gap: 3px}
.stm-label-switch button, .stm-pack-switch button {
  min-height: 36px;
  padding: 4px 7px;
  text-underline-offset: .25em;
}
.stm-label-switch button:hover, .stm-pack-switch button:hover {text-decoration: underline}
.stm-label-switch button[aria-pressed="true"] {border: 1px solid var(--stm-deep); border-radius: 30px}
.stm-pack-switch button[aria-pressed="true"] {font-weight: 700; text-decoration: underline}
.stm-details {
  min-width: 0;
  padding: clamp(22px, 3vw, 45px);
}
.stm-details h3 {
  font: 400 clamp(33px, 3.5vw, 59px)/.99 var(--serif);
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.stm-description {margin-top: 12px; color: #454c3c; max-width: 43ch}
.stm-spec {margin-top: 22px; padding-block: 12px; border-block: 1px solid var(--line)}
.stm-spec dt, .stm-quote legend {font: 700 13px/1.35 var(--sans); color: var(--muted)}
.stm-spec dd {margin-top: 3px}
.stm-quote {margin-block: 16px 12px}
.stm-quote fieldset {min-inline-size: 0; padding: 0; margin: 0 0 16px; border: 0}
.stm-size-options {display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px}
.stm-size-options label {position: relative; cursor: pointer; font-size: 14px; font-weight: 600}
.stm-size-options input {position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer}
.stm-size-options span {
  display: grid;
  place-items: center;
  min-width: 58px;
  min-height: 44px;
  padding-inline: 9px;
  border: 1px solid #8a907d;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}
.stm-size-options input:checked + span {background: var(--stm-deep); color: var(--stm-light); border-color: var(--stm-deep)}
.stm-size-options input:focus-visible + span {outline: 3px solid #9c5b19; outline-offset: 2px}
.stm-size-options label:hover span {border-color: var(--ink)}
.stm-quote .stm-primary {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--stm-deep);
  border-radius: 3px;
  padding: 11px 14px;
  background: var(--leaf);
  color: var(--stm-deep);
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.stm-primary:hover {background: #d5df9f}
.stm-primary span {
  position: relative;
  width: 17px;
  height: 12px;
  background: linear-gradient(currentColor, currentColor) center left / 15px 1px no-repeat;
}
.stm-primary span::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  inset: 2px 2px auto auto;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.stm-quote .stm-calculate {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--stm-deep);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: .25em;
  text-align: left;
  padding: 0;
  cursor: pointer;
}
.stm-feedback {font-size: 13px; color: var(--muted); margin-top: 8px}
.stm-feedback:empty {margin: 0}
.stm-registration {border-top: 1px solid var(--line); padding: 8px 0; font-size: 14px}
.stm-registration summary, .stm-packaging summary {cursor: pointer; font-weight: 600}
.stm-registration summary {padding: 4px 0}
.stm-registration > a {display: block; margin-top: 8px; overflow-wrap: anywhere}
.stm-registration small {display: block; color: var(--muted)}
.stm-registration p {margin-top: 7px; overflow-wrap: anywhere}
.stm-product-photos {display: flex; gap: 7px; flex-wrap: wrap; margin-top: 9px}
.stm-product-photos .packshot {flex: 0 0 75px; background: var(--stm-photo)}
.stm-product-photos img {width: 75px; height: 86px; padding: 4px; object-fit: contain; mix-blend-mode: multiply}
.stm-packaging {margin-top: 22px; padding-top: 12px; border-top: 1px solid #697463}
.stm-packaging > p, .stm-empty {margin-top: 8px; color: var(--stm-soft)}
.stm-packaging figcaption {color: var(--stm-light)}
@media (max-width: 900px) {
  .stm-catalog[data-enhanced] .stm-layout {grid-template-columns: minmax(0, 1fr); gap: 20px}
  .stm-catalog .stm-index {display: none}
  .stm-catalog .stm-picker {
    display: grid;
    gap: 5px;
    max-width: 360px;
    color: var(--stm-soft);
    font-size: 14px;
  }
  .stm-picker select {
    width: 100%;
    min-height: 44px;
    padding: 7px 10px;
    background: var(--stm-light);
    color: var(--ink);
    border: 1px solid var(--stm-rule);
    border-radius: 3px;
  }
}
@media (max-width: 610px) {
  .stm-intro {display: block}
  .stm-intro > p {margin-top: 14px}
  .stm-filters button {font-size: 13px}
  .stm-panel {grid-template-columns: minmax(0, 1fr)}
  .stm-figure {border-radius: 14px 14px 0 0}
  .stm-image-window {min-height: clamp(232px, 75vw, 355px)}
  .stm-figure figcaption, .stm-pack-switch {font-size: 12px}
  .stm-details {padding: 20px 16px}
  .stm-figure + .stm-details {border-top: 1px solid var(--stm-rule)}
}

.stm-intro h2 {max-width:13ch}
.stm-intro h2 em {display:block}
.stm-browse {display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-bottom:12px}
.stm-browse output {font-variant-numeric:tabular-nums;font-size:14px;color:var(--stm-soft)}
.stm-browse button {border:1px solid #9aa993;background:transparent;color:var(--stm-light);width:44px;height:44px;border-radius:50%;cursor:pointer;font-size:20px}
.stm-browse button:hover {background:var(--leaf);color:var(--stm-deep)}
.stm-browse button:disabled {opacity:.45;cursor:default}
.stm-image-window {background:radial-gradient(ellipse at 50% 38%,#fff9e6 2%,var(--stm-photo) 74%)}
.stm-custom {position:absolute;inset:0;width:100%;height:100%;padding-block:8px;object-fit:contain;mix-blend-mode:multiply}
.stm-image-window:has(.stm-custom:not([hidden])) img {visibility:hidden}
.stm-brand-editor {padding:14px clamp(13px,2vw,26px);background:#f6f2df;color:var(--stm-deep);border-top:1px solid var(--stm-rule)}
.stm-brand-editor label {display:block;font:500 22px/1.2 var(--serif);margin-bottom:8px}
.stm-brand-editor input {width:100%;min-height:44px;background:var(--paper);border:1px solid #828674;color:var(--ink);border-radius:4px;padding:8px 12px;font:inherit}
.stm-index a[aria-current="true"] {background:var(--leaf);color:var(--stm-deep);padding-left:12px;border-radius:4px}
.stm-quote .stm-primary {border-radius:28px;padding-inline:20px}
@media(prefers-reduced-motion:no-preference){
  .motion-on .stm-primary span,.motion-on .stm-index a,.motion-on .stm-size-options span {transition:transform .2s ease,background-color .2s ease,color .2s ease}
  .motion-on .stm-primary:hover span {transform:translateX(4px)}
}
