/* Hardware store (hardware.html): curated picks, one product per category. Page-scoped st- classes. */
.st-body {
  --st-bg: #0b0b0c;
  --st-cell: #121214;
  --st-ink: #ecebe6;
  --st-soft: #c4c0b8;
  --st-dim: #8b8a85;
  --st-faint: #5c5b57;
  --st-rule: #242426;
  --st-champagne: #e8cda5;
  --st-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --st-display: "SF Pro Display", Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--st-bg);
}

.st-body::before,
.st-body::after {
  display: none;
}

.st {
  padding-bottom: 96px;
}

.st-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--st-dim);
  font: 500 11px var(--font-mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Bauhaus mark: red square, yellow circle, blue triangle */
.st-glyph {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 28px;
  background: #e5432a;
}

.st-glyph::before,
.st-glyph::after {
  content: '';
  position: absolute;
  top: 0;
  width: 9px;
  height: 9px;
}

.st-glyph::before {
  left: 13px;
  border-radius: 50%;
  background: #f0be2c;
}

.st-glyph::after {
  left: 26px;
  background: #3a66e0;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

/* ---------- Head ---------- */
.st-head {
  position: relative;
  padding: 72px 0 8px;
}

.st-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: -140px;
  width: 620px;
  height: 320px;
  background: radial-gradient(closest-side, rgba(240, 190, 44, 0.08), transparent);
  pointer-events: none;
}

.st-head h1 {
  position: relative;
  margin: 0;
  color: var(--st-ink);
  font: 700 clamp(2.6rem, 6.4vw, 4.8rem) / 1 var(--st-display);
  letter-spacing: -0.03em;
}

.st-lede {
  position: relative;
  max-width: 46ch;
  margin: 20px 0 0;
  color: var(--st-soft);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.6;
}

.st-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--st-dim);
  font: 500 12px var(--font-mono);
  letter-spacing: 0.04em;
}

.st-facts li::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 9px;
  vertical-align: 2px;
  background: var(--st-champagne);
}

/* Category jump strip: a hairline grid of eight cells */
.st-jump {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  border: 1px solid var(--st-rule);
  background: var(--st-rule);
}

.st-jump a {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 16px 18px 15px;
  background: var(--st-cell);
  color: var(--st-ink);
  text-decoration: none;
  transition: background-color 0.25s ease;
}

.st-jump a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--accent);
  transition: width 0.4s var(--st-ease);
}

.st-jump a:hover,
.st-jump a:focus-visible {
  background: #18181b;
}

.st-jump a:hover::before,
.st-jump a:focus-visible::before {
  width: 100%;
}

.st-jump span {
  color: var(--st-dim);
  font-size: 0.78rem;
}

.st-jump b {
  font: 600 0.95rem var(--st-display);
  font-variant-numeric: tabular-nums;
}

.st-notice {
  margin: 32px 0 0;
  color: var(--st-soft);
}

/* ---------- Products ---------- */
.st-list {
  display: grid;
  gap: 28px;
  margin-top: 40px;
}

.st-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--st-rule);
  background: linear-gradient(180deg, #111113 0%, #0c0c0e 100%);
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.st-item::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 72px;
  height: 3px;
  background: var(--accent);
}

.st-item:nth-child(even) .st-media {
  order: 2;
}

.st-stage {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--st-rule);
  background: #0e0e10;
}

.st-stage[data-view="photo"] {
  background:
    radial-gradient(58% 52% at 50% 56%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 72%),
    #0e0e10;
}

.st-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: st-reveal 0.45s var(--st-ease);
}

.st-stage .st-photo {
  padding: 9%;
}

@keyframes st-reveal {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
}

.st-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.st-thumbs button {
  width: 68px;
  height: 68px;
  padding: 0;
  border: 1px solid var(--st-rule);
  background: #0e0e10;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.st-thumbs button:hover,
.st-thumbs button:focus-visible {
  opacity: 0.9;
}

.st-thumbs button[aria-pressed="true"] {
  border-color: var(--accent);
  opacity: 1;
}

.st-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.st-thumbs button + button img {
  padding: 8px;
}

.st-thumbs button:first-child img {
  padding: 0;
}

.st-info {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.st-index {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--st-dim);
  font: 500 12px var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.st-index i {
  width: 8px;
  height: 8px;
  background: var(--accent);
}

.st-info h2 {
  margin: 0;
  color: var(--st-ink);
  font: 650 clamp(1.45rem, 2.6vw, 2.05rem) / 1.18 var(--st-display);
  letter-spacing: -0.015em;
}

.st-buybox {
  display: grid;
  gap: 16px;
  padding-top: 6px;
}

.st-colour {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--st-dim);
  font-size: 0.84rem;
}

.st-colour .pf-seg button {
  min-width: 64px;
  padding: 0 14px;
}

.st-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

.st-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  color: var(--st-ink);
  font-family: var(--st-display);
  font-variant-numeric: tabular-nums;
}

.st-price small {
  color: var(--st-dim);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.st-price b {
  font-size: clamp(2rem, 3.8vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.st-unit {
  color: var(--st-dim);
  font-size: 0.95rem;
}

.st-sum {
  margin: -6px 0 0;
  color: var(--st-dim);
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
}

.st-sum b {
  color: var(--st-ink);
  font-weight: 600;
}

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

.st-actions .pf-ghost,
.st-actions .pf-submit {
  gap: 8px;
  min-height: 48px;
  margin: 0;
}

.st-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.st-specs {
  margin: 0;
  border-top: 1px solid var(--st-rule);
}

.st-specs div {
  display: grid;
  grid-template-columns: minmax(96px, 0.36fr) 1fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.86rem;
  line-height: 1.5;
}

.st-specs dt {
  color: var(--st-dim);
}

.st-specs dd {
  margin: 0;
  color: var(--st-soft);
  font-variant-numeric: tabular-nums;
}

/* ---------- Full catalogue link ---------- */
.st-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 64px;
  padding: 36px 0;
  border-top: 1px solid rgba(232, 205, 165, 0.25);
  border-bottom: 1px solid rgba(232, 205, 165, 0.25);
}

.st-more .st-eyebrow {
  margin-bottom: 10px;
}

.st-more h2 {
  margin: 0;
  color: var(--st-ink);
  font: 600 clamp(1.4rem, 2.6vw, 1.9rem) var(--st-display);
}

.st-more p:not(.st-eyebrow) {
  max-width: 56ch;
  margin: 10px 0 0;
  color: var(--st-soft);
  line-height: 1.6;
}

.st-more-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.st-more-actions .pf-submit {
  margin: 0;
}

.st-more-actions .pf-ghost {
  min-height: 46px;
}

/* ---------- Narrow screens ---------- */
@media (max-width: 860px) {
  .st-head {
    padding-top: 44px;
  }

  .st-jump {
    display: flex;
    overflow-x: auto;
    margin-right: -16px;
    scrollbar-width: none;
  }

  .st-jump::-webkit-scrollbar {
    display: none;
  }

  .st-jump a {
    flex: none;
    min-width: 132px;
  }

  .st-item {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }

  .st-item:nth-child(even) .st-media {
    order: 0;
  }

  .st-thumbs button {
    width: 56px;
    height: 56px;
  }

  .st-more-actions,
  .st-more-actions > * {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .st-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-stage img {
    animation: none;
  }

  .st-jump a::before {
    transition: none;
  }
}
