/*
 * Mematrix design system (2026-10). One set of tokens and components, measured against the marketplace layout:
 * 970px content width (1270px on screens 1300px and wider, as on the marketplace), 14px/20px body, 16px/28px light description text, 1px #e4e5e7 rules, 2px radius,
 * no shadows, one primary button per view. Brand colour stays teal.
 *
 * Every storefront page (home, product, cart, STEM kits, policies) uses only this file.
 */
:root {
  --mx-font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mx-mono: "Cascadia Mono", "SF Mono", SFMono-Regular, Consolas, "Roboto Mono", "Liberation Mono", monospace;
  --mx-text: #333;
  --mx-text-soft: #373b3e;
  --mx-muted: #6b7378;
  --mx-faint: #9aa1a6;
  --mx-rule: #e4e5e7;
  --mx-rule-strong: #caced0;
  --mx-surface: #fff;
  --mx-wash: #f6f7f8;
  --mx-teal: #087f8c;
  --mx-teal-dark: #066572;
  --mx-teal-tint: #e8f4f5;
  --mx-star: #f5a623;
  --mx-danger: #b4472c;
  --mx-radius: 2px;
  --mx-width: 970px;
}
@media (min-width: 1300px) {
  :root { --mx-width: 1270px; }
}

/* ------------------------------------------------------------------ product page */
.pp {
  max-width: var(--mx-width);
  margin: 0 auto;
  padding: 0 15px 48px;
  color: var(--mx-text);
  font-family: var(--mx-font);
  font-size: 14px;
  line-height: 20px;
}
.pp a { color: var(--mx-teal); text-decoration: none; }
.pp a:hover { color: var(--mx-teal-dark); text-decoration: underline; }

.pp-breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; padding: 14px 0 6px; color: var(--mx-muted); font-size: 13px; }
.pp-breadcrumb a { color: var(--mx-text); }
.pp-breadcrumb span[aria-current] { color: var(--mx-muted); }

.pp-head { padding: 6px 0 18px; }
.pp-head h1 { margin: 0 0 8px; color: var(--mx-text); font-size: 30px; font-weight: 400; line-height: 36px; letter-spacing: -0.01em; }
.pp-head-rating { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 13px; }
.pp-head-summary { max-width: 560px; margin: 0 0 8px; }
.pp-head-maker { margin: 0; font-size: 13px; color: var(--mx-muted); }
.pp-head-maker a { font-weight: 600; }

.pp-stars { display: inline-flex; gap: 1px; color: #d9dcde; font-size: 15px; letter-spacing: 0; line-height: 1; }
.pp-stars .is-on { color: var(--mx-star); }

/* One bordered panel: content 2/3, buy box 1/3. */
.pp-well { display: grid; grid-template-columns: minmax(0, 547fr) minmax(0, 391fr); gap: 0; padding: 30px 15px; border: 1px solid var(--mx-rule); background: var(--mx-surface); }
.pp-main { min-width: 0; padding: 0 15px; }
.pp-aside { min-width: 0; padding: 0 15px; }

/* Gallery: 3:2 frame, one row of 3:2 thumbnails with arrows. */
.pp-frame { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #fff; border: 1px solid var(--mx-rule); }
.pp-main-image, .pp-main-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pp-main-video { background: #000; }
.pp-frame-empty { display: grid; place-items: center; color: var(--mx-faint); }
.pp-thumbs { position: relative; margin-top: 14px; }
.pp-thumbs-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pp-thumbs-track::-webkit-scrollbar { display: none; }
.pp-thumb { position: relative; flex: 0 0 calc((100% - 36px) / 4); aspect-ratio: 3 / 2; padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--mx-rule); border-radius: 0; cursor: pointer; scroll-snap-align: start; }
.pp-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pp-thumb:hover { border-color: var(--mx-rule-strong); }
.pp-thumb.is-active { border: 2px solid var(--mx-teal); }
.pp-thumb-play { position: absolute; inset: 50% auto auto 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; background: rgba(0, 0, 0, 0.6); border-radius: 50%; }
.pp-thumb-play::after { content: ""; position: absolute; top: 8px; left: 11px; border-style: solid; border-width: 6px 0 6px 9px; border-color: transparent transparent transparent #fff; }
.pp-thumbs-arrow { position: absolute; top: 50%; z-index: 2; width: 30px; height: 30px; margin-top: -15px; padding: 0; color: #fff; background: rgba(0, 0, 0, 0.55); border: 0; border-radius: 50%; cursor: pointer; font-size: 20px; line-height: 28px; }
.pp-thumbs-arrow.is-prev { left: 4px; }
.pp-thumbs-arrow.is-next { right: 4px; }
.pp-thumbs-arrow[hidden] { display: none; }

/* In-page section links, Tindie-style tab row. */
.pp-tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 26px 0 0; padding: 0 2px; border-bottom: 1px solid var(--mx-rule); font-size: 14px; }
.pp-tabs a { padding: 10px 2px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pp-tabs a:first-child { color: var(--mx-text); border-bottom-color: var(--mx-teal); }
.pp-tabs a:hover { text-decoration: none; border-bottom-color: var(--mx-rule-strong); }

.pp-section { padding: 26px 0 0; scroll-margin-top: 80px; }
.pp-section + .pp-section { margin-top: 10px; border-top: 1px solid var(--mx-rule); }
.pp-section-title { margin: 0 0 14px; color: var(--mx-text); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.pp-section p, .pp-section li { color: var(--mx-text-soft); font-size: 16px; font-weight: 300; line-height: 28px; }
.pp-section p { margin: 0 0 18px; }
.pp-section h3 { margin: 26px 0 10px; color: var(--mx-text); font-size: 16px; font-weight: 600; line-height: 24px; }
.pp-section h3:first-of-type { margin-top: 0; }
.pp-section ul, .pp-section ol { margin: 0 0 18px; padding-left: 22px; }
.pp-section li { margin: 0 0 6px; }
.pp-section strong { font-weight: 600; color: var(--mx-text); }

/* Specs and documents */
.pp .spec-list { display: grid; margin: 0 0 18px; border-top: 1px solid var(--mx-rule); }
.pp .spec-list div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--mx-rule); font-size: 14px; }
.pp .spec-list dt { color: var(--mx-muted); }
.pp .spec-list dd { margin: 0; color: var(--mx-text); }
.pp .document-links { display: grid; gap: 0; margin: 0 0 18px; padding: 0; list-style: none; border-top: 1px solid var(--mx-rule); }
.pp .document-links li { margin: 0; font-size: 14px; line-height: 20px; }
.pp .document-links a { display: flex; justify-content: space-between; padding: 10px 2px; border-bottom: 1px solid var(--mx-rule); }
.pp .oshwa-uid { font-size: 14px; }

/* Reviews */
.pp-review-summary { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; }
.pp-review-summary .pp-stars { font-size: 18px; }
.pp-review-list { margin: 0; padding: 0; list-style: none; }
.pp-review { padding: 16px 0; border-top: 1px solid var(--mx-rule); }
.pp-review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px !important; color: var(--mx-muted) !important; font-size: 13px !important; line-height: 18px !important; font-weight: 400 !important; }
.pp-review h3 { margin: 0 0 4px !important; font-size: 15px; }
.pp-review p:last-child { margin-bottom: 0; }
.pp-review-source { margin: 8px 0 0 !important; color: var(--mx-muted) !important; font-size: 13px !important; line-height: 18px !important; }

/* Buy box */
.pp-buy { padding-bottom: 22px; border-bottom: 1px solid var(--mx-rule); }
.pp-price { margin: 0; color: var(--mx-teal); font-size: 36px; font-weight: 300; line-height: 40px; }
.pp-price-note { margin: 6px 0 0; color: var(--mx-muted); font-size: 13px; }
.pp-pack-deal { margin: 10px 0 0; padding: 9px 11px; border: 1px solid var(--mx-line, #d9dee3); border-radius: 8px; display: grid; gap: 4px; font-size: 13px; line-height: 1.45; }
.pp-pack-deal p { margin: 0; }
.cart-summary-row.is-deal strong { color: #1f7a4d; }
.pack-deal-nudge { margin: 0 0 10px; font-size: 13px; color: var(--mx-muted); }
.pp-ask { display: inline-block; margin: 10px 0 0; padding: 3px 9px; color: var(--mx-text) !important; background: #fff; border: 1px solid var(--mx-rule-strong); border-radius: var(--mx-radius); font-size: 12px; }
.pp-ask:hover { text-decoration: none !important; background: var(--mx-wash); }
.pp-qty, .pp-option { display: grid; gap: 5px; margin: 16px 0 0; }
.pp-qty label, .pp-option > span { color: var(--mx-text); font-size: 13px; font-weight: 600; }
.pp-option abbr { color: var(--mx-danger); text-decoration: none; }
.pp-option select { width: 100%; height: 32px; padding: 4px 8px; color: var(--mx-text-soft); background: #fff; border: 1px solid var(--mx-rule-strong); border-radius: var(--mx-radius); font: inherit; font-size: 14px; }
.pp-option select:focus, .pp-stepper input:focus { outline: 2px solid var(--mx-teal-tint); border-color: var(--mx-teal); }
.pp-option-help { color: var(--mx-muted); font-size: 12px; line-height: 16px; }
.pp-options { display: grid; }
.pp-stepper { display: inline-flex; width: max-content; border: 1px solid var(--mx-rule-strong); border-radius: var(--mx-radius); }
.pp-stepper button { width: 30px; height: 30px; color: var(--mx-text); background: #fff; border: 0; cursor: pointer; font-size: 16px; }
.pp-stepper button:hover { background: var(--mx-wash); }
.pp-stepper input { width: 46px; height: 30px; border: 0; border-inline: 1px solid var(--mx-rule); text-align: center; font: inherit; font-size: 14px; -moz-appearance: textfield; }
.pp-stepper input::-webkit-outer-spin-button, .pp-stepper input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.pp-stock { margin: 10px 0 0; color: var(--mx-muted); font-size: 13px; }
.pp-add { display: block; width: 100%; height: 42px; margin: 20px 0 0; color: #fff; background: var(--mx-teal); border: 1px solid var(--mx-teal-dark); border-radius: var(--mx-radius); cursor: pointer; font: inherit; font-size: 17px; font-weight: 500; }
.pp-add:hover { background: var(--mx-teal-dark); }
.pp-add.is-incomplete { opacity: 0.85; }
.pp-notice { margin: 8px 0 0; color: var(--mx-danger); font-size: 13px; }
.pp-notice:empty { display: none; }
/* Buy-with-confidence card under the cart button: tinted panel, large shield badge, three check-marked promises. */
.pp-confidence { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; margin: 20px 0 0; padding: 16px 16px 14px; background: var(--mx-teal-tint); border: 1px solid #b9dde1; border-left: 4px solid var(--mx-teal); border-radius: 6px; font-size: 13px; line-height: 19px; color: var(--mx-text-soft); }
.pp-confidence p { margin: 0; }
.pp-confidence-icon { width: 48px; height: 56px; color: var(--mx-teal); filter: drop-shadow(0 2px 3px rgba(8, 127, 140, .25)); }
.pp-confidence-title { margin: 2px 0 6px !important; color: var(--mx-teal-dark); font-size: 16px; font-weight: 700; letter-spacing: .01em; }
.pp-confidence-list { margin: 0; padding: 0; list-style: none; }
.pp-confidence-list li { position: relative; margin: 3px 0 0; padding-left: 20px; }
.pp-confidence-list li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 9px; height: 5px; border: solid var(--mx-teal); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.pp-confidence a { color: var(--mx-teal-dark); font-weight: 600; }
.pp .default-configuration { margin: 16px 0 0; padding: 10px 12px; background: var(--mx-wash); border: 1px solid var(--mx-rule); font-size: 13px; }
.pp .default-configuration h2 { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.pp .default-configuration ul { margin: 0 0 6px; padding-left: 18px; }

/* Store card and more products */
.pp-aside-title { margin: 22px 0 12px; color: var(--mx-text); font-size: 15px; font-weight: 600; }
.pp-store { padding-bottom: 22px; border-bottom: 1px solid var(--mx-rule); font-size: 13px; color: var(--mx-text-soft); }
.pp-store p { margin: 8px 0 0; }
.pp-store-name { display: flex; align-items: center; gap: 12px; color: var(--mx-text) !important; font-size: 16px; font-weight: 600; }
.pp-store-name img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.pp-store-facts { color: var(--mx-muted); }
.pp-store-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.pp-store-actions a { padding: 6px 8px; text-align: center; color: var(--mx-text); background: #fff; border: 1px solid var(--mx-rule-strong); border-radius: var(--mx-radius); }
.pp-store-actions a.is-primary { color: #fff; background: var(--mx-teal); border-color: var(--mx-teal); }
.pp-store-actions a:hover { text-decoration: none; filter: brightness(0.97); }
.pp-more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.pp-more-item { display: grid; gap: 6px; color: var(--mx-text-soft) !important; font-size: 13px; line-height: 17px; }
.pp-more-item:hover { text-decoration: none !important; }
.pp-more-item:hover .pp-more-title { color: var(--mx-teal); }
.pp-more-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #fff; border: 1px solid var(--mx-rule); }
.pp-more-media img { width: 100%; height: 100%; object-fit: cover; }
.pp-more-title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pp-more-price { color: var(--mx-text); font-weight: 600; }
.pp-more-price small { color: var(--mx-muted); font-weight: 400; }

/* Tablets and phones: gallery, buy box, then the details. */
@media (max-width: 880px) {
  .pp-well { grid-template-columns: minmax(0, 1fr); padding: 18px 0; }
  .pp-main { display: contents; }
  .pp-gallery { order: 1; padding: 0 15px; }
  .pp-aside { order: 2; padding: 0 15px; }
  .pp-tabs, .pp-section { order: 3; margin-inline: 15px; }
  .pp-buy { margin-top: 22px; }
}
@media (max-width: 520px) {
  .pp { padding: 0 12px 36px; }
  .pp-head h1 { font-size: 24px; line-height: 30px; }
  .pp-price { font-size: 30px; line-height: 34px; }
  .pp-thumb { flex-basis: calc((100% - 24px) / 3); }
  .pp .spec-list div { grid-template-columns: 1fr; gap: 2px; }
}
.pp-stars .is-half { background: linear-gradient(90deg, var(--mx-star) 50%, #d9dcde 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ================================================================== base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--mx-text); background: #fff; font-family: var(--mx-font); font-size: 14px; line-height: 20px; }
img { max-width: 100%; }
a { color: var(--mx-teal); }
button, input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-width { width: min(100% - 30px, var(--mx-width)); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--mx-teal); outline-offset: 2px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 16px; color: var(--mx-text); background: #fff; border: 1px solid var(--mx-rule-strong); border-radius: var(--mx-radius); cursor: pointer; font-size: 14px; font-weight: 500; text-decoration: none; }
.button:hover { background: var(--mx-wash); text-decoration: none; }
.button.primary { color: #fff; background: var(--mx-teal); border-color: var(--mx-teal-dark); }
.button.primary:hover { background: var(--mx-teal-dark); }
.text-button { padding: 2px 0; color: var(--mx-teal); background: none; border: 0; cursor: pointer; font-size: 13px; }
.text-button:hover { text-decoration: underline; }
.text-link { color: var(--mx-teal); }

/* ================================================================== header */
.utility-bar { color: var(--mx-muted); background: var(--mx-wash); border-bottom: 1px solid var(--mx-rule); font-size: 12px; }
.utility-inner { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.site-header { position: relative; z-index: 20; background: #fff; border-bottom: 1px solid var(--mx-rule); }
.header-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 22px; align-items: center; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--mx-text); text-decoration: none; }
.brand-mark { flex: none; width: 40px; height: 40px; }
.brand-copy { display: grid; gap: 2px; line-height: 1; font-family: var(--mx-mono); }
.brand-copy strong { color: #1d2a30; font-size: 19px; font-weight: 700; letter-spacing: 0.06em; }
.brand-copy small { color: var(--mx-teal); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; }
.site-search { display: flex; max-width: 420px; }
.site-search input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border: 1px solid var(--mx-rule-strong); border-right: 0; border-radius: var(--mx-radius) 0 0 var(--mx-radius); font-size: 14px; }
.site-search input:focus { outline: none; border-color: var(--mx-teal); }
.search-label { padding: 0 16px; color: #fff; background: var(--mx-teal); border: 0; border-radius: 0 var(--mx-radius) var(--mx-radius) 0; cursor: pointer; font-size: 14px; }
.search-label:hover { background: var(--mx-teal-dark); }
.header-links { display: flex; gap: 18px; font-size: 13px; }
.header-links a { color: var(--mx-text); text-decoration: none; }
.header-links a:hover, .header-links a[aria-current="page"] { color: var(--mx-teal); }
.header-cart { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--mx-text); text-decoration: none; font-size: 13px; }
.header-cart:hover { color: var(--mx-teal); }
.header-cart .cart-count, .floating-cart .cart-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; color: #fff; background: var(--mx-teal); border-radius: 9px; font-size: 11px; font-weight: 600; line-height: 1; }
.header-cart:not(.has-items) .cart-count { background: var(--mx-faint); }
.header-cart.is-bumped, .floating-cart.is-bumped { animation: mx-bump 480ms ease; }
@keyframes mx-bump { 35% { transform: scale(1.12); } }
.category-nav { border-top: 1px solid var(--mx-rule); }
/* Wide screens: links that do not fit wrap onto a second row instead of being scrolled out of sight.
   Narrow screens: one swipeable row, faded at the right edge so the hidden links are hinted. */
.category-nav-inner { display: flex; flex-wrap: wrap; column-gap: 22px; }
@media (max-width: 760px) {
  .category-nav-inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 24px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .category-nav-inner::-webkit-scrollbar { display: none; }
}
.category-link { flex: none; padding: 9px 0; color: var(--mx-text); font-size: 13px; text-decoration: none; border-bottom: 2px solid transparent; }
.category-link:hover { color: var(--mx-teal); }
.category-link.is-active { color: var(--mx-teal); border-bottom-color: var(--mx-teal); }

/* ================================================================== footer */
.footer { margin-top: 48px; padding: 32px 0 20px; color: var(--mx-text-soft); background: var(--mx-wash); border-top: 1px solid var(--mx-rule); font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 24px; }
.footer-brand strong { color: var(--mx-text); font-size: 14px; }
.footer-brand strong span { color: var(--mx-muted); font-weight: 400; }
.footer-brand p, .footer-column p { margin: 8px 0 0; }
.footer-column { display: grid; align-content: start; gap: 6px; }
.footer-column h2 { margin: 0 0 4px; color: var(--mx-text); font-size: 13px; font-weight: 600; }
.footer-column a { color: var(--mx-text-soft); text-decoration: none; }
.footer-column a:hover { color: var(--mx-teal); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--mx-rule); color: var(--mx-muted); font-size: 12px; }

/* ================================================================== homepage */
/* Featured banner: one bordered panel, 3:2 photo beside the copy. */
.featured-hero { width: min(100% - 30px, var(--mx-width)); margin: 22px auto 0; border: 1px solid var(--mx-rule); background: #fff; }
.featured-hero-viewport { overflow: hidden; touch-action: pan-y; }
.featured-hero-track { display: flex; transition: transform 650ms cubic-bezier(0.65, 0, 0.35, 1); will-change: transform; }
.featured-hero-track.is-instant { transition: none; }
.featured-hero-slide { flex: 0 0 100%; min-width: 0; }
.featured-hero-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; width: 100%; padding: 26px 30px 12px; }
.featured-hero-copy { order: 2; }
.featured-hero-image-link { order: 1; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #fff; border: 1px solid var(--mx-rule); }
.featured-hero-image-link img { width: 100%; height: 100%; object-fit: contain; }
.featured-hero .eyebrow { margin: 0 0 8px; color: var(--mx-muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.featured-hero h2 { margin: 0 0 10px; color: var(--mx-text); font-size: 26px; font-weight: 400; line-height: 32px; }
.featured-hero-summary { margin: 0 0 14px; color: var(--mx-text-soft); font-size: 15px; font-weight: 300; line-height: 24px; }
.featured-hero-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin: 0 0 16px; }
.featured-hero-meta strong { color: var(--mx-teal); font-size: 26px; font-weight: 300; }
.featured-hero-meta span { color: var(--mx-muted); font-size: 13px; }
.featured-hero-browse { display: inline-block; margin-left: 14px; font-size: 13px; text-decoration: none; }
.featured-hero-browse:hover { text-decoration: underline; }
.featured-hero-controls-row { width: 100%; padding: 4px 30px 14px; }
.featured-hero-controls { display: flex; align-items: center; justify-content: center; gap: 10px; }
.hero-arrow, .hero-pause { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; color: var(--mx-text); background: #fff; border: 1px solid var(--mx-rule-strong); border-radius: 50%; cursor: pointer; }
.hero-arrow:hover, .hero-pause:hover { border-color: var(--mx-teal); color: var(--mx-teal); }
.hero-arrow span { width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
#hero-previous span { transform: rotate(-135deg); }
/* Edge arrows (as on the marketplace homepage): over the banner, shown while the pointer is on it. Touch screens swipe. */
.featured-hero-stage { position: relative; }
.featured-hero-viewport { cursor: grab; }
.featured-hero-viewport.is-dragging { cursor: grabbing; user-select: none; }
.featured-hero-viewport img { -webkit-user-drag: none; user-select: none; }
/* Plain chevrons, 48px hit area, 70% when shown and full on hover (as on the marketplace homepage). */
.hero-edge { position: absolute; z-index: 2; top: 50%; width: 48px; height: 48px; margin-top: -24px; color: var(--mx-text); background: none; border: 0; border-radius: 0; opacity: 0; transition: opacity 220ms ease; filter: drop-shadow(0 1px 2px rgba(255, 255, 255, 0.72)); }
.hero-edge:hover { color: var(--mx-text); border: 0; }
.hero-edge.is-previous { left: 4px; }
.hero-edge.is-next { right: 4px; }
.hero-edge span { width: 14px; height: 14px; border-top-width: 2px; border-right-width: 2px; }
.featured-hero:hover .hero-edge, .hero-edge:focus-visible { opacity: 0.7; }
.featured-hero .hero-edge:hover { opacity: 1; }
@media (hover: none) { .hero-edge { display: none; } }
@media (hover: hover) and (min-width: 901px) { .featured-hero-inner { padding-inline: 62px; } }
/* Pause/play sits with the dots at their scale: a plain icon (no outline), 24px click area, dot colour. */
.hero-pause { grid-auto-flow: column; justify-content: center; align-content: center; gap: 2px; width: 24px; height: 24px; margin-left: -2px; color: var(--mx-muted); background: none; border: 0; border-radius: var(--mx-radius); }
.hero-pause:hover { color: var(--mx-teal); border: 0; }
.hero-pause > span { display: none; }
.hero-pause::before, .hero-pause::after { content: ""; width: 2px; height: 8px; background: currentColor; border-radius: 1px; }
.hero-pause.is-paused::before { width: 0; height: 0; margin-left: 2px; background: transparent; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent; border-left: 7px solid currentColor; border-radius: 0; }
.hero-pause.is-paused::after { display: none; }
.hero-dots { display: flex; gap: 7px; }
.hero-dot { width: 8px; height: 8px; padding: 0; background: var(--mx-rule-strong); border: 0; border-radius: 50%; cursor: pointer; }
.hero-dot.is-active { width: 20px; background: var(--mx-teal); border-radius: 4px; }

/* Store header and service line, like a marketplace store page. */
.store-profile { margin-top: 26px; }
.store-profile-inner { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; align-items: start; }
.store-avatar { width: 96px; height: 96px; }
.store-avatar.is-photo { object-fit: cover; border-radius: 50%; border: 2px solid var(--mx-teal-tint); }
.store-avatar-figure { margin: 0; }
.store-avatar-figure figcaption { margin-top: 4px; color: var(--mx-muted); font-size: 10px; line-height: 13px; text-align: center; }
.store-profile h1 { margin: 2px 0 6px; color: var(--mx-text); font-size: 26px; font-weight: 400; line-height: 30px; }
.store-tagline { max-width: 640px; margin: 0 0 8px; color: var(--mx-text-soft); }
.store-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; color: var(--mx-muted); font-size: 13px; }
.service-message { width: min(100% - 30px, var(--mx-width)); margin: 22px auto 0; background: var(--mx-wash); border: 1px solid var(--mx-rule); }
.service-message-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; width: 100%; padding: 12px 15px; font-size: 14px; }
.service-message-inner p { margin: 0; color: var(--mx-text-soft); }

/* Catalog: plain category list on the left, three-column grid. */
.catalog-section { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 30px; margin-top: 30px; }
.catalog-sidebar h2 { margin: 0 0 10px; color: var(--mx-text); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.sidebar-block + .sidebar-block { margin-top: 26px; }
.filter-list { display: grid; gap: 2px; }
.filter-button { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; color: var(--mx-text); font-size: 14px; text-decoration: none; }
.filter-button:hover { color: var(--mx-teal); }
.filter-button.is-active { color: var(--mx-teal); font-weight: 600; }
.filter-count { color: var(--mx-faint); font-size: 12px; font-weight: 400; }
.sidebar-note p { margin: 0 0 6px; color: var(--mx-muted); font-size: 13px; line-height: 19px; }
.sidebar-note a { font-size: 13px; }
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.catalog-toolbar h2 { margin: 0; color: var(--mx-text); font-size: 20px; font-weight: 400; }
.catalog-toolbar-actions { display: flex; align-items: center; gap: 14px; }
.catalog-toolbar-actions p { margin: 0; color: var(--mx-muted); font-size: 13px; }
.catalog-toolbar select { height: 32px; padding: 0 8px; color: var(--mx-text); background: #fff; border: 1px solid var(--mx-rule-strong); border-radius: var(--mx-radius); font-size: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 24px; }
@media (min-width: 1300px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-card { min-width: 0; }
.product-card-media { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #fff; border: 1px solid var(--mx-rule); }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 160ms ease; }
.product-card:hover .product-card-media img { opacity: 0.9; }
.product-media-placeholder { display: grid; place-items: center; height: 100%; color: var(--mx-faint); }
.product-card-title { display: -webkit-box; overflow: hidden; margin: 10px 0 4px; font-size: 14px; font-weight: 400; line-height: 20px; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card-title a { color: var(--mx-text); text-decoration: none; }
.product-card-title a:hover { color: var(--mx-teal); text-decoration: underline; }
.product-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-price { margin: 0; color: var(--mx-text); font-size: 14px; font-weight: 600; }
.product-price small { color: var(--mx-muted); font-weight: 400; }
.card-video-badge { position: absolute; right: 8px; bottom: 8px; padding: 2px 8px; color: #fff; background: rgba(17, 24, 31, 0.72); border-radius: 10px; font-size: 11px; font-weight: 600; }
.card-quick-add { display: inline-flex; flex: none; align-items: center; gap: 4px; height: 30px; padding: 0 11px 0 8px; color: var(--mx-teal); background: #fff; border: 1px solid var(--mx-teal); border-radius: 15px; font-size: 12px; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; }
.card-quick-add:hover { color: #fff; background: var(--mx-teal); border-color: var(--mx-teal); }
.card-quick-add svg { flex: none; width: 16px; height: 16px; }
.card-quick-add.is-added { animation: mx-bump 450ms ease; }
.empty-state { padding: 30px 0; color: var(--mx-muted); text-align: center; }

/* ================================================================== shared components */
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 1100; max-width: min(380px, calc(100vw - 36px)); padding: 10px 14px; color: #fff; background: var(--mx-text); border-radius: var(--mx-radius); font-size: 13px; }
.floating-cart { display: none; }
.cart-notice-check, .order-complete-check { display: inline-grid; width: 18px; height: 18px; place-items: center; background: #1f9d55; border-radius: 50%; }
.cart-notice-check::after, .order-complete-check::after { content: ""; width: 4px; height: 8px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.express-status { margin: 8px 0 0; color: var(--mx-muted); font-size: 12px; }
.express-status:empty { display: none; }
.order-complete { display: grid; gap: 10px; justify-items: start; padding: 24px 0; }
.order-complete h2 { margin: 0; font-size: 20px; font-weight: 400; }
.quantity-stepper { display: inline-flex; border: 1px solid var(--mx-rule-strong); border-radius: var(--mx-radius); }
.quantity-stepper button { width: 28px; height: 28px; color: var(--mx-text); background: #fff; border: 0; cursor: pointer; }
.quantity-stepper button:disabled { color: var(--mx-faint); cursor: default; }
.quantity-stepper input { width: 40px; height: 28px; border: 0; border-inline: 1px solid var(--mx-rule); text-align: center; font-size: 13px; -moz-appearance: textfield; }
.quantity-stepper input::-webkit-outer-spin-button, .quantity-stepper input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }

/* Cart drawer */
.cart-drawer-open, .cart-drawer-open body { overflow: hidden; }
.cart-drawer-layer { position: fixed; inset: 0; z-index: 1000; pointer-events: none; }
.cart-drawer-layer.is-open { pointer-events: auto; }
.cart-drawer-backdrop { position: absolute; inset: 0; background: rgba(20, 28, 35, 0.4); opacity: 0; transition: opacity 0.25s ease; }
.cart-drawer-layer.is-open .cart-drawer-backdrop { opacity: 1; }
.cart-drawer { position: absolute; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(400px, 100vw); background: #fff; border-left: 1px solid var(--mx-rule); transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cart-drawer-layer.is-open .cart-drawer { transform: none; }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--mx-rule); }
.cart-drawer-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.cart-drawer-close { width: 30px; height: 30px; color: var(--mx-muted); background: none; border: 0; border-radius: 50%; cursor: pointer; font-size: 22px; line-height: 1; }
.cart-drawer-close:hover { color: var(--mx-text); background: var(--mx-wash); }
.cart-drawer-body { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow-y: auto; }
.cart-drawer-added { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 18px; color: #1d5c2e; background: #eef8f0; border-bottom: 1px solid #d3ecd9; font-size: 13px; }
.cart-drawer-lines { flex: 1 1 auto; min-height: min(170px, 34vh); overflow-y: auto; padding: 0 18px; }
.cart-drawer-line { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--mx-rule); }
.cart-drawer-line:last-child { border-bottom: 0; }
.cart-drawer-thumb img { width: 60px; height: 40px; object-fit: cover; border: 1px solid var(--mx-rule); }
.cart-drawer-line-main { display: grid; gap: 3px; min-width: 0; align-content: start; }
.cart-drawer-line-title { color: var(--mx-text); font-size: 13px; line-height: 18px; text-decoration: none; }
.cart-drawer-line-title:hover { color: var(--mx-teal); }
.cart-drawer-line-meta { color: var(--mx-muted); font-size: 12px; }
.cart-drawer-line-meta.is-blocked { color: var(--mx-danger); }
.cart-drawer-line-controls { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.cart-drawer-line-total { font-size: 13px; font-weight: 600; white-space: nowrap; }
.cart-drawer-footer { display: grid; gap: 7px; padding: 14px 18px 18px; background: var(--mx-wash); border-top: 1px solid var(--mx-rule); }
.cart-drawer-footer .cart-summary-row { display: flex; justify-content: space-between; font-size: 13px; }
.cart-drawer-footer .cart-summary-total { padding-top: 7px; border-top: 1px solid var(--mx-rule); font-size: 15px; }
.cart-drawer-paypal { min-height: 44px; margin-top: 6px; }
.cart-drawer-checkout { width: 100%; }
.cart-drawer-links { display: flex; justify-content: space-between; font-size: 13px; }
.cart-drawer-trust { margin: 2px 0 0; color: var(--mx-muted); font-size: 11px; line-height: 16px; }
.cart-drawer-empty { display: grid; gap: 14px; justify-items: center; padding: 48px 18px; color: var(--mx-muted); }
.cart-drawer-body .order-complete { padding: 24px 18px; }
.cart-blocked-note, .cart-drawer-blocked { margin: 10px 0 0; padding: 9px 11px; color: #6b4a00; background: #fff8e6; border: 1px solid #f1d58a; font-size: 12px; }
.cart-line-options { display: grid; gap: 1px; margin: 2px 0; padding: 0; list-style: none; color: var(--mx-text-soft); font-size: 12px; line-height: 17px; }
.cart-line-options li { padding-left: 8px; border-left: 2px solid var(--mx-rule); }
.cart-line-options span { color: var(--mx-muted); }
.free-shipping-progress { display: grid; gap: 5px; margin: 0 0 4px; padding: 8px 10px; background: var(--mx-teal-tint); border: 1px solid #cfe7ea; font-size: 12px; }
.free-shipping-progress p { margin: 0; }
.free-shipping-progress.is-earned { color: #1d5c2e; background: #eef8f0; border-color: #d3ecd9; }
.free-shipping-bar { display: block; height: 5px; overflow: hidden; background: #d6e6e9; border-radius: 3px; }
.free-shipping-bar span { display: block; height: 100%; background: var(--mx-teal); }

/* ================================================================== responsive */
@media (max-width: 900px) {
  .header-main { grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; }
  .header-links { grid-column: 1 / -1; order: 4; }
  .featured-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px 18px 8px; }
  .catalog-section { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .catalog-sidebar { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .utility-inner span:last-child { display: none; }
  .header-main { grid-template-columns: minmax(0, 1fr) auto; }
  .site-search { grid-column: 1 / -1; order: 3; max-width: none; }
  .header-cart-text { display: none; }
  .brand-copy small { display: none; }
  .featured-hero h2 { font-size: 21px; line-height: 27px; }
  .store-profile-inner { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
  .store-avatar { width: 64px; height: 64px; }
  .product-grid { gap: 20px 12px; }
  .product-card-title { font-size: 13px; line-height: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .floating-cart { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 900; display: grid; place-items: center; width: 52px; height: 52px; color: #fff; background: var(--mx-teal); border-radius: 50%; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 0.2s, transform 0.2s; }
  .floating-cart.is-visible { opacity: 1; pointer-events: auto; transform: none; }
  .floating-cart .cart-count { position: absolute; top: -3px; right: -3px; color: var(--mx-text); background: var(--mx-star); border: 2px solid #fff; }
  .floating-cart:not(.has-items) .cart-count { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .featured-hero-track, .cart-drawer, .cart-drawer-backdrop { transition: none; }
  .card-quick-add.is-added, .header-cart.is-bumped, .floating-cart.is-bumped { animation: none; }
}

/* ------------------------------------------------------------------ contact form (data-mail links) */
.contact-dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; color: var(--mx-text); background: #fff; border: 1px solid var(--mx-rule); border-radius: var(--mx-radius); font-family: var(--mx-font); font-size: 14px; line-height: 20px; }
.contact-dialog::backdrop { background: rgba(0, 0, 0, 0.4); }
.contact-form { display: grid; gap: 12px; padding: 18px 20px 20px; }
.contact-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--mx-rule); }
.contact-head h2 { margin: 0; font-size: 18px; font-weight: 500; }
.contact-close { width: 32px; height: 32px; color: var(--mx-muted); background: none; border: 0; font-size: 24px; line-height: 1; cursor: pointer; }
.contact-intro { margin: 0; color: var(--mx-muted); font-size: 13px; }
.contact-form label { display: grid; gap: 4px; font-size: 13px; font-weight: 500; }
.contact-form input, .contact-form textarea { width: 100%; padding: 7px 9px; color: var(--mx-text); background: #fff; border: 1px solid var(--mx-rule-strong); border-radius: var(--mx-radius); font: inherit; }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--mx-teal-tint); border-color: var(--mx-teal); }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-status { min-height: 20px; margin: 0; font-size: 13px; }
.contact-status.is-error { color: var(--mx-danger); }
.contact-status.is-ok { color: #1f7a4d; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.contact-check { min-height: 65px; }
.contact-reveal { color: var(--mx-muted); font-size: 12px; }
.contact-reveal a { color: var(--mx-teal); }
.contact-reveal-button { padding: 0; color: var(--mx-muted); background: none; border: 0; font: inherit; font-size: 12px; cursor: pointer; }
.contact-reveal-button:hover { color: var(--mx-teal); text-decoration: underline; }
@media (max-width: 520px) { .contact-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ store policies, cart page, STEM kits page */
.eyebrow { margin: 0 0 6px; color: var(--mx-muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.page-title { margin: 0 0 8px; color: var(--mx-text); font-size: 28px; font-weight: 400; line-height: 36px; }

.policy-page { padding: 32px 0 24px; }
.policy-heading { max-width: 720px; margin-bottom: 18px; }
.policy-heading h1 { margin: 0 0 8px; font-size: 28px; font-weight: 400; line-height: 36px; }
.policy-heading p:last-child { margin: 0; color: var(--mx-muted); }
.policy-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; max-width: 720px; padding: 10px 0; border-block: 1px solid var(--mx-rule); }
.policy-nav a, .policy-layout a { color: var(--mx-teal); text-decoration: none; }
.policy-nav a:hover, .policy-layout a:hover { color: var(--mx-teal-dark); text-decoration: underline; }
.policy-layout { max-width: 720px; }
.policy-layout section { padding: 24px 0 10px; border-bottom: 1px solid var(--mx-rule); scroll-margin-top: 16px; }
.policy-layout h2 { margin: 0 0 12px; font-size: 18px; font-weight: 500; line-height: 24px; }
.policy-layout p { margin: 0 0 14px; color: var(--mx-text-soft); font-size: 15px; font-weight: 300; line-height: 26px; }
.policy-layout strong { font-weight: 600; }

.cart-page { min-height: 50vh; padding: 32px 0 24px; }
.cart-page h1 { margin: 0 0 18px; font-size: 28px; font-weight: 400; line-height: 36px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 28px; }
.cart-lines { min-width: 0; }
.cart-line { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: start; gap: 16px; padding: 16px 0; border-top: 1px solid var(--mx-rule); }
.cart-line:last-child { border-bottom: 1px solid var(--mx-rule); }
.cart-line-image { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--mx-wash); border: 1px solid var(--mx-rule); }
.cart-line-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-main h2 { margin: 0 0 4px; font-size: 15px; font-weight: 500; line-height: 20px; }
.cart-line-main h2 a { color: var(--mx-text); text-decoration: none; }
.cart-line-main h2 a:hover { color: var(--mx-teal); }
.cart-line-unit { margin: 2px 0; font-size: 14px; }
.cart-line-main .cart-line-options { margin: 4px 0 6px; }
.cart-line-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 10px; }
.cart-line-controls label { display: flex; align-items: center; gap: 8px; color: var(--mx-muted); font-size: 13px; }
.cart-line-total { padding-top: 2px; font-weight: 500; white-space: nowrap; }
.cart-summary { position: sticky; top: 16px; padding: 18px; background: #fff; border: 1px solid var(--mx-rule); border-radius: var(--mx-radius); }
.cart-summary h2 { margin: 0 0 14px; font-size: 18px; font-weight: 500; }
.cart-summary-note { margin: 10px 0 0; color: var(--mx-muted); font-size: 12px; line-height: 17px; }
.cart-summary .cart-summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--mx-rule); font-size: 14px; }
.cart-summary .cart-summary-row strong { font-weight: 500; }
.cart-summary .cart-summary-total { font-size: 15px; }
.cart-summary .cart-summary-total strong { color: var(--mx-text); font-size: 18px; }
.cart-summary .free-shipping-progress { margin-bottom: 10px; }
.cart-line-shipping { margin: 2px 0 0; color: var(--mx-muted); font-size: 13px; }
.cart-line-shipping.is-blocked { color: #a15c00; }
.paypal-checkout-box { margin: 16px 0 6px; }
.cart-continue { display: block; margin-top: 12px; color: var(--mx-teal); font-size: 13px; text-align: center; text-decoration: none; }
.cart-continue:hover { text-decoration: underline; }
.cart-empty { padding: 32px 0; }
.cart-empty h2 { margin: 0 0 8px; font-size: 18px; font-weight: 500; }
.cart-empty p { color: var(--mx-muted); }
.document-placeholder { color: var(--mx-muted); font-size: 13px; }

.stem-page-heading { padding: 32px 0 26px; background: var(--mx-wash); border-bottom: 1px solid var(--mx-rule); }
.stem-page-heading h1 { max-width: 720px; margin: 0 0 10px; font-size: 28px; font-weight: 400; line-height: 36px; }
.stem-page-heading p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--mx-text-soft); font-size: 15px; font-weight: 300; line-height: 24px; }
.stem-heading-facts { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 16px; color: var(--mx-muted); font-size: 13px; }
.stem-heading-facts strong { color: var(--mx-text); font-weight: 600; }
.stem-collection { padding: 28px 0 8px; }
.home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.home-section-head h2 { margin: 0; font-size: 20px; font-weight: 400; line-height: 26px; }
.collection-note { max-width: 340px; margin: 0; color: var(--mx-muted); font-size: 12px; text-align: right; }
.stem-catalog-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stem-product-card { display: grid; grid-template-columns: minmax(160px, 0.8fr) minmax(0, 1.2fr); min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--mx-rule); border-radius: var(--mx-radius); scroll-margin-top: 16px; }
.stem-product-card:target { border-color: var(--mx-teal); }
.stem-product-media { display: block; min-height: 220px; overflow: hidden; background: var(--mx-wash); border-right: 1px solid var(--mx-rule); }
.stem-product-media img { width: 100%; height: 100%; object-fit: contain; }
.stem-product-body { display: flex; flex-direction: column; min-height: 220px; padding: 16px; }
.stem-product-kicker, .stem-product-meta { display: flex; align-items: center; gap: 8px; color: var(--mx-muted); font-size: 12px; }
.stem-product-kicker { text-transform: uppercase; letter-spacing: 0.04em; }
.stem-rank { display: inline-grid; width: 22px; height: 22px; place-items: center; flex: 0 0 auto; color: #fff; background: var(--mx-text); border-radius: 50%; font-size: 11px; letter-spacing: 0; }
.stem-product-card h3 { margin: 10px 0 6px; font-size: 16px; font-weight: 500; line-height: 22px; }
.stem-product-card h3 a { color: var(--mx-text); text-decoration: none; }
.stem-product-card h3 a:hover { color: var(--mx-teal); }
.stem-product-body > p { margin: 0 0 14px; color: var(--mx-text-soft); font-size: 13px; font-weight: 300; line-height: 19px; }
.stem-product-meta { align-items: flex-start; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--mx-rule); }
.stem-product-meta span:last-child { text-align: right; }
.stem-status { color: #8a4b16; }
.stem-product-card.is-available .stem-status { color: #1f7a4d; }
.stem-product-card.is-validation .stem-status { color: #715b10; }
.stem-product-price { margin-top: 10px; color: var(--mx-teal); font-size: 18px; font-weight: 400; }

@media (max-width: 880px) {
  .stem-catalog-list { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cart-layout { grid-template-columns: 1fr; gap: 20px; }
  .cart-summary { position: static; }
  .cart-line { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
  .cart-line-total { grid-column: 2; justify-self: end; }
  .home-section-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .collection-note { max-width: none; text-align: left; }
}
@media (max-width: 520px) {
  .stem-product-card { grid-template-columns: 1fr; }
  .stem-product-media { min-height: 0; aspect-ratio: 3 / 2; border-right: 0; border-bottom: 1px solid var(--mx-rule); }
  .stem-product-body { min-height: 0; }
}

/* ================================================================== shop sections (homepage blocks, category pages) */
.category-link.is-collection { color: var(--mx-muted); }
.home-block { margin-top: 38px; }
.home-section-lead { margin: 4px 0 0; color: var(--mx-muted); font-size: 13px; }
.home-view-all { flex: none; font-size: 14px; text-decoration: none; }
.home-view-all:hover { text-decoration: underline; }
.product-grid.home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px 20px; }
.category-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.category-tile { display: flex; flex-direction: column; min-width: 0; background: var(--mx-surface); border: 1px solid var(--mx-rule); }
.category-tile-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-bottom: 1px solid var(--mx-rule); }
.category-tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 200ms ease; }
.category-tile:hover .category-tile-media img { transform: scale(1.03); }
.category-tile-body { padding: 10px 12px 12px; }
.category-tile h3 { display: grid; gap: 1px; margin: 0 0 8px; font-size: 15px; font-weight: 600; line-height: 20px; }
.category-tile h3 a { color: var(--mx-text); text-decoration: none; }
.category-tile h3 a:hover { color: var(--mx-teal); }
.category-tile-count { color: var(--mx-faint); font-size: 12px; font-weight: 400; }
.category-tile-subs { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none; }
.category-tile-subs a { color: var(--mx-text-soft); font-size: 12px; line-height: 16px; text-decoration: none; }
.category-tile-subs a:hover { color: var(--mx-teal); text-decoration: underline; }
.collection-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.collection-links a { display: grid; align-content: start; gap: 2px; height: 100%; padding: 10px 14px; color: var(--mx-text-soft); background: var(--mx-teal-tint); border: 1px solid #cfe7ea; font-size: 13px; line-height: 18px; text-decoration: none; }
.collection-links a strong { color: var(--mx-teal-dark); font-size: 14px; }
.collection-links a:hover strong { text-decoration: underline; }
.search-results .home-section-head p { margin: 0; color: var(--mx-muted); font-size: 13px; }

.section-page { padding-bottom: 10px; }
.section-head { margin: 6px 0 14px; }
.section-head h1 { margin: 0 0 6px; color: var(--mx-text); font-size: 28px; font-weight: 400; line-height: 34px; }
.section-head-page { color: var(--mx-faint); font-size: 18px; }
.section-lead { max-width: 760px; margin: 0; color: var(--mx-text-soft); font-size: 15px; line-height: 22px; }
.section-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.section-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; color: var(--mx-text); background: #fff; border: 1px solid var(--mx-rule-strong); border-radius: 16px; font-size: 13px; text-decoration: none; }
.section-chip span { color: var(--mx-faint); font-size: 12px; }
.section-chip:hover { color: var(--mx-teal); border-color: var(--mx-teal); }
.section-chip.is-active { color: #fff; background: var(--mx-teal); border-color: var(--mx-teal); }
.section-chip.is-active span { color: #d6eef0; }
.section-page .catalog-section { grid-template-columns: 200px minmax(0, 1fr); margin-top: 20px; }
.section-page .catalog-toolbar p { margin: 0; color: var(--mx-muted); font-size: 13px; }
.section-tree ul { margin: 0; padding: 0; list-style: none; }
.section-tree ul ul { margin: 0 0 6px 10px; padding-left: 8px; border-left: 1px solid var(--mx-rule); }
.section-tree .filter-button.is-sub { padding: 2px 0; color: var(--mx-text-soft); font-size: 13px; }
.section-tree .filter-button.is-sub.is-active, .section-tree .filter-button.is-sub:hover { color: var(--mx-teal); }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 34px 0 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 10px; color: var(--mx-text); border: 1px solid var(--mx-rule-strong); border-radius: var(--mx-radius); font-size: 14px; text-decoration: none; }
.pagination a:hover { color: var(--mx-teal); border-color: var(--mx-teal); }
.pagination span[aria-current] { color: #fff; background: var(--mx-teal); border-color: var(--mx-teal); }
.section-intro { max-width: 760px; margin: 40px 0 0; padding-top: 22px; border-top: 1px solid var(--mx-rule); color: var(--mx-text-soft); font-size: 14px; line-height: 22px; }
.section-intro h2 { margin: 0 0 10px; color: var(--mx-text); font-size: 18px; font-weight: 400; }
.section-intro p { margin: 0 0 12px; }

@media (max-width: 900px) {
  .category-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-page .catalog-section { grid-template-columns: minmax(0, 1fr); }
  .product-grid.home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .collection-links { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .category-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category-tile-subs { display: none; }
  .home-block { margin-top: 30px; }
  .section-head h1 { font-size: 24px; line-height: 30px; }
  .section-chips { flex-wrap: nowrap; overflow-x: auto; padding: 0 24px 4px 0; scrollbar-width: none; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
  .section-chip { flex: none; }
  .card-quick-add-long { display: none; }
  .card-quick-add { padding: 0 9px 0 6px; }
}

/* ================================================================== our story */
.home-story { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; align-items: center; padding: 20px 22px; background: var(--mx-wash); border: 1px solid var(--mx-rule); }
.home-story img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; border: 3px solid #fff; }
.home-story h2 { margin: 0 0 6px; font-size: 20px; font-weight: 400; line-height: 26px; }
.home-story p { max-width: 720px; margin: 0 0 6px; color: var(--mx-text-soft); }
.home-story-meta { color: var(--mx-muted) !important; font-size: 13px; }
.about-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 36px; margin-top: 22px; }
.about-photo { margin: 0; }
.about-photo img { display: block; width: 180px; height: 180px; object-fit: cover; border-radius: 50%; border: 3px solid var(--mx-teal-tint); }
.about-photo figcaption { max-width: 180px; margin-top: 8px; color: var(--mx-muted); font-size: 12px; line-height: 17px; text-align: center; }
.about-copy { max-width: 720px; color: var(--mx-text-soft); font-size: 15px; line-height: 24px; }
.about-copy h2 { margin: 26px 0 8px; color: var(--mx-text); font-size: 20px; font-weight: 400; }
.about-copy h2:first-child { margin-top: 0; }
.about-copy p { margin: 0 0 12px; }
.about-press { margin: 0; padding-left: 18px; }
@media (max-width: 700px) {
  .home-story { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 14px; }
  .home-story img { width: 80px; height: 80px; }
  .about-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .about-photo { display: grid; justify-items: center; }
}

/* ================================================================== description tables */
/* Part picture before a table in a product description (see renderDescription in storefront-core.js). */
.pp-part { margin: 4px 0 10px; display: flex; align-items: center; gap: 14px; }
.pp-part img { width: 220px; max-width: 45%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--mx-rule); border-radius: 6px; background: #fff; }
.pp-part figcaption { color: var(--mx-muted, #5f6670); font-size: 13px; line-height: 18px; }
.pp-table-wrap { margin: 0 0 18px; overflow-x: auto; }
.pp-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 18px; }
.pp-table th, .pp-table td { padding: 6px 10px; border: 1px solid var(--mx-rule); text-align: left; vertical-align: top; }
.pp-table th { color: var(--mx-text); background: var(--mx-wash); font-weight: 600; }
.pp-table tbody tr:nth-child(even) td { background: #fbfbfc; }
.pp-table td:last-child, .pp-table th:last-child { white-space: nowrap; }
