:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #173c33;
  background: #edf4f1;
  --bg: #edf4f1;
  --card: #fff;
  --text: #173c33;
  --muted: #637970;
  --accent: #17634f;
  --button-text: #fff;
  --safe-top: 0px;
  --safe-bottom: 0px;
  --safe-left: 0px;
  --safe-right: 0px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
}
header,
main,
footer {
  max-width: 880px;
  margin: auto;
  padding: 24px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #839a8933;
}
.brand {
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -2px;
  text-decoration: none;
  color: var(--text);
}
.brand span {
  font-size: 11px;
  margin-left: 3px;
  color: var(--accent);
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #87968c55;
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  padding: 12px 16px;
  min-height: 44px;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
#cart-count {
  display: inline-block;
  padding: 2px 6px;
  background: var(--bg);
  border-radius: 6px;
  font-size: 12px;
}
#hero {
  padding: 28px 0 24px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--accent);
}
h1 {
  font-size: clamp(35px, 7vw, 62px);
  line-height: 1.03;
  letter-spacing: -2px;
  margin: 20px 0;
}
#hero > p:last-child {
  line-height: 1.7;
  font-size: 15px;
  color: var(--muted);
}
h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
}
#notice {
  font-size: 14px;
  line-height: 1.5;
}
#notice:has(#status:empty) {
  display: none;
}
#status {
  white-space: pre-line;
}
form {
  padding: 18px;
  border: 1px solid #839a8933;
  border-radius: 18px;
  background: var(--card);
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}
input,
select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid #839a8944;
  border-radius: 9px;
}
.filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
summary {
  font-size: 13px;
  cursor: pointer;
  min-height: 35px;
}
.checkbox {
  display: flex;
  align-items: center;
  margin-top: 12px;
}
.checkbox input {
  width: 18px;
  min-height: 18px;
}
.primary {
  background: var(--accent);
  color: var(--button-text);
  border: 0;
  font-weight: 650;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
}
.section-title button {
  font-size: 12px;
  border: 0;
  background: transparent;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  padding: 0;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 16px;
  background: var(--card);
}
.media-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #cbded2, #e6e9dc);
  color: #49725e;
  font-size: 58px;
  font-weight: 300;
  letter-spacing: -5px;
}
.product-card img,
.product-card video {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.card-copy {
  padding: 15px;
  width: 100%;
}
.card-copy h3 {
  font-size: 16px;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.card-copy p {
  margin: 7px 0;
  font-size: 14px;
  font-weight: 700;
}
.stock {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.more {
  display: block;
  margin: 22px auto;
}
.empty {
  grid-column: 1/-1;
  padding: 35px 12px;
  text-align: center;
  color: var(--muted);
}
.gallery {
  display: flex;
  gap: 10px;
  overflow: auto;
  scroll-snap-type: x mandatory;
  border-radius: 18px;
}
.gallery img,
.gallery video,
.gallery .media-placeholder {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: var(--card);
}
.description {
  white-space: pre-line;
  overflow-wrap: anywhere;
  line-height: 1.7;
  color: var(--muted);
}
.price {
  font-size: 26px;
  font-weight: 750;
}
.detail-actions {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}
.cart-line {
  padding: 18px;
  background: var(--card);
  border-radius: 12px;
  margin: 12px 0;
}
.cart-line h3 {
  margin: 0 0 8px;
}
.cart-line p {
  margin: 6px 0;
}
.warning {
  color: var(--text);
  font-weight: 650;
}
footer {
  text-align: center;
  letter-spacing: 2px;
  font-size: 9px;
  color: var(--muted);
  padding: 40px 24px;
}
@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 360px) {
  header,
  main {
    padding: 16px;
  }
  .grid {
    gap: 10px;
  }
  .card-copy {
    padding: 11px;
  }
  .filter-row {
    gap: 8px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition:
      background 0.15s,
      opacity 0.15s;
  }
}
