:root {
  --w-ink: #14171f;
  --w-muted: #5b6472;
  --w-bg: #ffffff;
  --w-surface: #f4f6f9;
  --w-accent: #2b5fff;
  --w-accent-ink: #ffffff;
  --w-radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--w-ink);
  background: var(--w-bg);
  line-height: 1.5;
}
section { padding: 56px 24px; max-width: 980px; margin: 0 auto; }
.hero { text-align: center; }
.hero--split { text-align: left; }
.hero h1 { font-size: 2.4rem; margin: 0 0 12px; }
.hero-sub { font-size: 1.15rem; color: var(--w-muted); margin: 0 0 20px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.feature { background: var(--w-surface); border-radius: var(--w-radius); padding: 20px; }
.feature h3 { margin: 0 0 8px; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--w-muted); }
.cta { text-align: center; background: var(--w-surface); border-radius: var(--w-radius); }
.cta h2 { margin: 0 0 16px; }
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--w-radius);
  text-decoration: none;
  font-weight: 600;
  margin: 4px;
}
.btn-primary { background: var(--w-accent); color: var(--w-accent-ink); }
.btn-secondary { background: transparent; color: var(--w-accent); border: 1px solid var(--w-accent); }
@media (max-width: 640px) {
  .hero h1 { font-size: 1.8rem; }
  section { padding: 36px 16px; }
}

/* Storefront widget (commerce.js) -- the one section type with dynamic, client-side-fetched
   content; everything else on this page is static HTML produced at build time. */
.storefront { max-width: 1100px; }
.wf-storefront-toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.wf-btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--w-radius);
  border: none;
  background: var(--w-accent);
  color: var(--w-accent-ink);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}
.wf-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.wf-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.wf-product-card { background: var(--w-surface); border-radius: var(--w-radius); padding: 16px; }
.wf-product-image { width: 100%; height: 160px; object-fit: cover; border-radius: 8px; background: #e3e7ee; }
.wf-product-image--placeholder { display: block; height: 160px; }
.wf-product-gallery { margin-bottom: 12px; }
.wf-product-thumbs { display: flex; gap: 6px; margin-top: 6px; }
.wf-product-thumb { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: 0.75; }
.wf-product-thumb:hover { opacity: 1; }
.wf-product-name { margin: 0 0 6px; font-size: 1.05rem; }
.wf-product-description { margin: 0 0 10px; color: var(--w-muted); font-size: 0.9rem; }
.wf-product-price { font-weight: 700; margin: 0 0 12px; }
.wf-variant-selectors { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.wf-variant-label { display: flex; flex-direction: column; font-size: 0.78rem; color: var(--w-muted); gap: 2px; }
.wf-variant-select { padding: 4px 6px; border-radius: 6px; border: 1px solid #d3d6db; }
.wf-collections { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.wf-collection-chip { border: 1px solid #d3d6db; background: var(--w-surface); border-radius: 999px; padding: 6px 14px; font-size: 0.85rem; cursor: pointer; }
.wf-collection-chip--active { background: var(--w-accent); color: var(--w-accent-ink); border-color: transparent; }
.wf-empty { color: var(--w-muted); }
.wf-cart-drawer {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100%;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  padding: 24px;
  transition: right 0.2s ease;
  overflow-y: auto;
  z-index: 1000;
}
.wf-cart-drawer--open { right: 0; }
.wf-cart-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eee; font-size: 0.9rem; }
.wf-cart-remove { background: none; border: none; color: #b33; cursor: pointer; font-size: 0.8rem; }
.wf-cart-empty { color: var(--w-muted); }
.wf-cart-subtotal { display: flex; justify-content: space-between; font-weight: 700; margin: 16px 0; }
.wf-checkout-status { margin-top: 10px; font-size: 0.9rem; }
.wf-checkout-status--error { color: #b33; }
.wf-checkout-status--success { color: #1a7a3c; }
