/* 01h Graphite Sketch — production storefront blueprint */

body.storefront-blueprint {
  --f-display: "Fraunces", serif;
  --f-sans: "DM Sans", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", monospace;
  --ice: #ececec;
  --surface: #fff;
  --grid: rgba(0, 0, 0, 0.08);
  --grid-ghost: rgba(0, 0, 0, 0.05);
  --grid-card: rgba(0, 0, 0, 0.06);
  --btn: #c97a62;
  --announce: #262626;
  --announce-txt: #fff;
  --ghost-border: #c97a62;
  --fig-dash: #a3a3a3;
  --tick: rgba(0, 0, 0, 0.1);
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
  --grid-grad-top: #dedede;
  --grid-grad-mid: #ececec;
  --grid-grad-fade: #f5f5f5;
  --grid-mask: linear-gradient(
    180deg,
    #000 0%,
    #000 7%,
    rgba(0, 0, 0, 0.84) 25%,
    rgba(0, 0, 0, 0.5) 41%,
    rgba(0, 0, 0, 0.14) 57%,
    transparent 64%
  );
  --grid-mask-global: linear-gradient(
    180deg,
    #000 0%,
    rgba(0, 0, 0, 0.82) 13%,
    rgba(0, 0, 0, 0.55) 33%,
    rgba(0, 0, 0, 0.28) 53%,
    rgba(0, 0, 0, 0.1) 65%
  );
  --grid-size-hero: 40px;
  --grid-size-card: 18px;
  --sketch-noise-op: 0.3;
  font-family: var(--f-sans);
  color: var(--text);
  overflow-x: hidden;
}

/* 全站格纹：固定铺满视口，商品详情 / Builder / 购物车等页面共用 */
body.storefront-blueprint.grid-sketch {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: linear-gradient(
    180deg,
    var(--grid-grad-top) 0%,
    var(--grid-grad-mid) 3%,
    var(--grid-grad-fade) 100%
  );
}

body.storefront-blueprint.grid-sketch::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--grid) 1.5px, transparent 1.5px),
    linear-gradient(var(--grid-ghost) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-ghost) 1px, transparent 1px);
  background-position: 0 0, 0 0, 2px 3px, 2px 3px;
  background-size: var(--grid-size-hero) var(--grid-size-hero);
  filter: url(#pencil-grain);
  opacity: 0.88;
  -webkit-mask-image: var(--grid-mask-global);
  mask-image: var(--grid-mask-global);
}

body.storefront-blueprint.grid-sketch::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: calc(var(--sketch-noise-op) * 0.7);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: multiply;
  -webkit-mask-image: var(--grid-mask-global);
  mask-image: var(--grid-mask-global);
}

body.storefront-blueprint.grid-sketch > :not(svg) {
  position: relative;
  z-index: 1;
}

body.storefront-blueprint a:focus-visible,
body.storefront-blueprint button:focus-visible {
  outline-color: var(--btn);
}

/* 顶栏区：与 .site-footer 同宽（container 内 -18px 铺满 1440） */
.bp-top-stack {
  margin: 0 -18px;
  width: auto;
  max-width: none;
  box-sizing: border-box;
}

.bp-skyline-top.container {
  padding-bottom: 0;
}

.bp-announce {
  background: var(--announce);
  color: var(--announce-txt);
  text-align: center;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  padding: 9px 16px;
  text-transform: uppercase;
  width: 100%;
  margin: 0;
  border-radius: 4px 4px 0 0;
  box-sizing: border-box;
}

.bp-hdr {
  width: 100%;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: none;
  border-radius: 0 0 4px 4px;
  position: sticky;
  top: 0;
  z-index: 30;
  box-sizing: border-box;
  transition: box-shadow 0.2s ease;
}

.bp-hdr.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.bp-hdr.is-scrolled .bp-hdr-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}

.bp-hdr-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "logo nav acts";
  align-items: center;
  column-gap: 24px;
  row-gap: 10px;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 14px 18px;
  box-sizing: border-box;
  transition: padding 0.2s ease;
}

/* 格纹画布：全站由 body.grid-sketch 绘制；此处仅作 Hero 布局容器 */
body.storefront-blueprint .bp-skyline.bp-grid-bg,
body.storefront-blueprint .bp-skyline {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.bp-skyline {
  position: relative;
}

.bp-grid-bg {
  position: relative;
  isolation: isolate;
  overflow: visible;
  margin: 0;
  background: transparent;
}

body.storefront-blueprint.grid-sketch .bp-grid-bg::before,
body.storefront-blueprint.grid-sketch .bp-grid-bg::after {
  content: none;
  display: none;
}

.bp-grid-bg > * {
  position: relative;
  z-index: 1;
}

.bp-logo {
  grid-area: logo;
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.bp-nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  min-width: 0;
}

.bp-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: 0.15s;
}

.bp-nav a:hover,
.bp-nav a.on {
  color: var(--primary);
}

.bp-nav a.on {
  box-shadow: none;
  border-bottom: 2px solid var(--btn);
  padding-bottom: 4px;
}

.bp-hdr-acts {
  grid-area: acts;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.header-account-slot {
  position: relative;
}

.header-account-guest[hidden],
.header-account-user[hidden] {
  display: none !important;
}

.header-account-guest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.header-account-guest:hover {
  border-color: var(--btn);
  color: var(--primary);
}

.header-account-guest svg {
  flex-shrink: 0;
}

.header-account-user {
  position: relative;
}

.header-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px 0 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.header-account-trigger:hover,
.header-account-trigger[aria-expanded="true"] {
  border-color: var(--btn);
  color: var(--primary);
}

.header-account-label {
  max-width: 108px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-account-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 50;
}

.header-account-dropdown a,
.header-account-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.header-account-dropdown a:hover,
.header-account-dropdown button:hover {
  background: var(--ice);
}

.bp-hdr-acts .header-icon-link {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.bp-hdr .nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
}

.bp-hero {
  border-bottom: none;
}

.bp-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
  align-items: center;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 44px 18px 56px;
  box-sizing: border-box;
}

.bp-hero-inner > * {
  min-width: 0;
}

.bp-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.bp-hero-copy h1 {
  font-family: var(--f-display);
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.05;
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--text);
}

.bp-hero-copy p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 36em;
  animation-delay: 0.16s;
}

@keyframes bp-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bp-hero-copy > * {
  animation: bp-rise 0.55s ease backwards;
}

.bp-hero-copy .bp-eyebrow {
  animation-delay: 0.05s;
}

.bp-hero-copy h1 {
  animation-delay: 0.1s;
}

.bp-hero-btns {
  animation-delay: 0.22s;
}

.bp-pills {
  animation-delay: 0.28s;
}

.bp-hero-fig {
  animation: bp-rise 0.65s ease 0.18s backwards;
}

@media (prefers-reduced-motion: reduce) {
  .bp-hero-copy > *,
  .bp-hero-fig {
    animation: none;
  }

  .fig-watch.is-spin {
    animation: none;
  }
}

.bp-hero-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.15s;
  border: 1.5px solid transparent;
}

.bp-btn.primary {
  background: var(--btn);
  color: #fff;
  border-color: var(--btn);
}

.bp-btn.primary:hover {
  filter: brightness(1.06);
}

.bp-btn.ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--ghost-border);
}

.bp-btn.ghost:hover {
  background: var(--ice);
}

.bp-btn.lg {
  min-height: 48px;
  padding: 0 28px;
  font-size: 14px;
}

.bp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bp-pills span {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.bp-hero-fig {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.bp-fig-frame {
  width: 100%;
  padding: clamp(14px, 2vw, 20px);
  border: 2px dashed var(--fig-dash);
  border-radius: 10px;
  background: var(--surface);
  box-sizing: border-box;
}

.bp-fig-frame--compact {
  min-height: 160px;
  display: grid;
  place-items: center;
}

.bp-fig-frame--compact .fig-tag {
  position: static;
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--muted);
}

.bp-fig {
  border: none !important;
  border-radius: 4px !important;
  background: transparent !important;
  box-shadow: none !important;
  width: 100%;
  min-height: clamp(200px, 22vw, 280px);
}

.bp-fig .fig-tag,
.bp-fig .fig-meta {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.bp-fig .fig-watch {
  border: none;
  background: transparent;
}

.fig-layers {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 6;
}

.bp-fig .fig-layer-btn {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 7px 10px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  min-width: 72px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.fig-layer-btn__label {
  line-height: 1;
}

.fig-layer-btn__icon {
  flex-shrink: 0;
  opacity: 0.72;
}

.bp-fig .fig-layer-btn.on {
  background: var(--btn);
  color: #fff;
  border-color: var(--btn);
}

.bp-fig .fig-layer-btn.on .fig-layer-btn__icon {
  opacity: 0.95;
}

.bp-fig .fig-layer-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--text);
}

.bp-fig .fig-layer-btn.on:hover:not(:disabled) {
  color: #fff;
  filter: brightness(1.04);
}

.fig-watch.is-spin {
  animation: bp-spin 16s linear infinite;
}

.fig-module:hover .fig-watch {
  transform: scale(1.04);
}

.ly {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.22s, transform 0.22s;
  pointer-events: none;
}

.ly-off {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
}

.ly-case {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 28%, #5a5a5a, #1a1a1a);
  box-shadow: inset 0 0 0 10px #c4a574, inset 0 0 0 18px #141414;
}

.ly-bezel {
  width: 90%;
  height: 90%;
  border-radius: 50%;
  border: 5px solid #2a2a2a;
}

.ly-dial {
  width: 54%;
  height: 54%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #2a4a6e, #0f1c2e);
  border: 1px solid #8ab4d9;
}

.ly-hands {
  width: 3px;
  height: 34%;
  background: #f0f0f0;
  border-radius: 2px;
  transform: translate(-50%, -90%) rotate(25deg);
  transform-origin: 50% 90%;
}

.ly-hands::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 40%;
  background: #ddd;
  transform: translateX(-50%) rotate(62deg);
  transform-origin: 50% 100%;
}

.bp-fig.fig-module {
  overflow: visible;
}

.fig-module {
  position: relative;
  overflow: hidden;
}

.fig-module .fig-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  padding: 36px 80px 36px 12px;
  box-sizing: border-box;
}

.fig-preview-slot {
  flex: 1 1 auto;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fig-watch {
  position: relative;
  flex: 0 0 auto;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: visible;
}

.fig-builder-stage {
  --fig-stage-size: 760px;
  --fig-stage-scale: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--fig-stage-size);
  height: var(--fig-stage-size);
  transform: translate(-50%, -50%) scale(var(--fig-stage-scale));
  transform-origin: center center;
  pointer-events: none;
}

.fig-builder-stage .builder-image-layer {
  position: absolute;
  transform: translate(-50%, -50%);
  object-fit: contain;
  animation: none !important;
  filter: none !important;
}

.fig-builder-stage .builder-hands-layer {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: hidden;
}

.fig-builder-stage .watch-hand-img {
  transform: translate(var(--hand-dx, 0px), var(--hand-dy, 0px)) rotate(var(--angle, 0deg));
}

.fig-stage-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  text-align: center;
  padding: 12px;
}

.fig-module .fig-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
}

.fig-module .fig-meta {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 5;
  transition: opacity 0.15s ease;
}

.fig-module .fig-meta.is-syncing {
  opacity: 0.45;
}

@keyframes bp-spin {
  to {
    transform: rotate(360deg);
  }
}

.bp-stats-wrap {
  width: 100%;
  margin: -28px 0 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

.bp-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bp-stat {
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 20px 22px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(6px);
}

.bp-stat strong {
  display: block;
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.bp-stat span {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.bp-section {
  width: 100%;
  padding: 32px 0 28px;
  margin: 0;
}

.bp-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.bp-section-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.bp-section-titles h2 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.bp-section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--btn);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.bp-section-link:hover {
  opacity: 0.85;
}

.bp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

/* Catalog list — horizontal filter bar + full-width grid */
.bp-catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.bp-catalog-count {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--muted);
}

.bp-catalog-count strong {
  color: var(--text);
  font-size: 15px;
}

.bp-catalog-filters-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  width: 100%;
}

.bp-filter-bar-label {
  flex: 0 0 auto;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.bp-filter-chips {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.bp-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bp-filter-chip:hover {
  border-color: var(--btn);
  background: var(--ice);
}

.bp-filter-chip.is-active {
  border-color: var(--btn);
  background: rgba(201, 122, 98, 0.1);
  color: var(--primary);
}

.bp-filter-clear {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--btn);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.bp-filter-count {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.bp-filter-chip.is-active .bp-filter-count {
  color: var(--btn);
}

.bp-catalog-main {
  min-width: 0;
}

.bp-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.bp-pagination-range {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.bp-pagination-per {
  margin: 0;
}

.bp-pagination-per-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.bp-select {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
}

.bp-pagination-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.bp-pagination-nums {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.bp-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.bp-page-btn:hover {
  border-color: var(--btn);
  color: var(--btn);
}

.bp-page-btn.is-current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.bp-page-btn.is-disabled,
.bp-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  color: var(--muted);
  font-size: 13px;
}

.bp-page-btn.is-disabled {
  border: 1px solid var(--line);
  background: var(--ice);
  opacity: 0.6;
}

.bp-card {
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 1px 4px rgba(15, 39, 68, 0.04);
}

.bp-card:hover {
  transform: translateY(-4px);
  border-color: var(--btn);
  box-shadow: var(--shadow-card-hover);
}

.bp-card-img {
  height: 260px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  border-radius: 14px;
  background-color: var(--ice);
  background-image:
    linear-gradient(var(--grid-card) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-card) 1px, transparent 1px);
  background-size: var(--grid-size-card) var(--grid-size-card);
}

body.storefront-blueprint.grid-sketch .bp-card-img {
  background-color: var(--ice);
  background-image: none;
}

/* 透明商品图：不叠加 lazy 占位灰底 */
.bp-card-img .lazy-img {
  background: none;
}

.bp-card-img .lazy-img.lazy-loaded {
  background: transparent;
}

.bp-card-img img,
.bp-card-img .lazy-img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

.bp-card-body {
  padding: 0 2px;
}

.bp-card-tag {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 8px 0 4px;
  text-transform: uppercase;
}

.bp-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 8px 2px 6px;
  line-height: 1.35;
  min-height: 2.7em;
}

.bp-price {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin: 0 2px 4px;
  font-variant-numeric: tabular-nums;
}

.bp-cta {
  width: 100%;
  padding: 8px 0 40px;
  margin: 0;
}

.bp-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 26px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.bp-cta h3 {
  font-family: var(--f-display);
  font-size: 22px;
  margin: 0 0 6px;
  font-weight: 600;
}

.bp-cta-eyebrow {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
}

.bp-cta p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
  max-width: 480px;
}

/* List page compact hero */
.bp-hero-compact {
  border-bottom: 1px solid var(--line);
}

.bp-hero-compact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 16px;
  align-items: center;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 28px 18px;
  box-sizing: border-box;
}

.bp-hero-compact-inner > * {
  min-width: 0;
}

.bp-hero-compact-copy h1,
.bp-hero-compact-copy h2 {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--text);
}

.bp-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.bp-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

body.storefront-blueprint .site-footer {
  background: var(--surface);
}

body.storefront-blueprint .footer-brand {
  font-family: var(--f-display);
  letter-spacing: 0.06em;
}

body.storefront-blueprint .preview-banner {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 8px 12px;
  background: #fff7ed;
  color: #9a3412;
  border-bottom: 1px solid #fed7aa;
}

/* Commerce pages — blueprint skin */
body.storefront-blueprint .commerce-page .commerce-hero {
  margin: 28px 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

body.storefront-blueprint .commerce-page .commerce-hero h1,
body.storefront-blueprint .bp-detail-page .product-summary h1,
body.storefront-blueprint .bp-detail-section h2 {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--text);
}

body.storefront-blueprint .commerce-page .commerce-hero h1 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

body.storefront-blueprint .commerce-card,
body.storefront-blueprint .bp-detail-panel,
body.storefront-blueprint .bp-detail-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

body.storefront-blueprint .commerce-card {
  padding: 20px;
}

body.storefront-blueprint .bp-detail-panel {
  padding: 22px;
  margin-top: 22px;
}

body.storefront-blueprint .bp-detail-section {
  padding: 20px;
  margin-bottom: 16px;
}

body.storefront-blueprint .bp-detail-section .section-head h2 {
  font-size: 24px;
  margin: 4px 0 0;
  letter-spacing: -0.02em;
}

body.storefront-blueprint .primary-btn {
  width: 100%;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  background: var(--btn);
  border: 1.5px solid var(--btn);
  color: #fff;
  letter-spacing: 0.01em;
}

body.storefront-blueprint .primary-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

body.storefront-blueprint .primary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

body.storefront-blueprint .btn-lite {
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
}

body.storefront-blueprint .btn-lite:hover {
  border-color: var(--btn);
  color: var(--text);
}

body.storefront-blueprint .link-lite {
  color: var(--btn);
  font-weight: 600;
  text-underline-offset: 3px;
}

body.storefront-blueprint .buy-box {
  border: 2px dashed var(--fig-dash);
  border-radius: 10px;
  background: var(--ice);
  box-shadow: none;
}

body.storefront-blueprint .bp-detail-gallery-frame {
  padding: clamp(14px, 2vw, 20px);
  border: 2px dashed var(--fig-dash);
  border-radius: 10px;
  background: var(--surface);
  box-sizing: border-box;
}

body.storefront-blueprint .bp-detail-gallery-frame .product-gallery {
  position: static;
  top: auto;
  display: grid;
  gap: 12px;
}

body.storefront-blueprint .bp-detail-page .product-main-image {
  min-height: 480px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background-color: var(--ice);
  background-image:
    linear-gradient(var(--grid-card) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-card) 1px, transparent 1px);
  background-size: var(--grid-size-card) var(--grid-size-card);
}

body.storefront-blueprint.grid-sketch .bp-detail-page .product-main-image {
  background-image:
    linear-gradient(var(--grid-card) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-card) 1px, transparent 1px);
  background-size: var(--grid-size-card) var(--grid-size-card);
}

body.storefront-blueprint .product-main-image {
  min-height: 480px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background-color: var(--ice);
  background-image:
    linear-gradient(var(--grid-card) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-card) 1px, transparent 1px);
  background-size: var(--grid-size-card) var(--grid-size-card);
}

body.storefront-blueprint .bp-detail-page .buy-box {
  border: 2px dashed var(--fig-dash);
  background: var(--surface);
  padding: 18px;
}

body.storefront-blueprint .bp-detail-page .buy-box .primary-btn {
  background: var(--btn);
  border: 1.5px solid var(--btn);
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
}

body.storefront-blueprint .bp-detail-page .buy-box .primary-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

body.storefront-blueprint .product-summary h1 {
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
}

body.storefront-blueprint .bp-detail-price {
  font-family: var(--f-mono);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

body.storefront-blueprint .service-item {
  border-radius: 8px;
  border-color: var(--line);
}

body.storefront-blueprint .order-card-commerce {
  border-radius: 10px;
}

body.storefront-blueprint .order-card-link:hover .order-card-commerce {
  border-color: var(--btn);
}

body.storefront-blueprint .cart-footer .primary-btn {
  width: auto;
  min-width: 200px;
}

body.storefront-blueprint .commerce-form label {
  font-family: var(--f-sans);
  font-size: 13px;
}

body.storefront-blueprint .breadcrumb {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Builder — blueprint 皮肤，画布区沿用格纹 */
body.storefront-blueprint .builder-page {
  margin-top: 8px;
}

body.storefront-blueprint .builder-hero h1 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.03em;
}

body.storefront-blueprint .builder-canvas,
body.storefront-blueprint .builder-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

body.storefront-blueprint .builder-stack-frame {
  border: 2px solid var(--fig-dash);
  background-color: var(--ice);
  background-image:
    linear-gradient(var(--grid-card) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-card) 1px, transparent 1px);
  background-size: var(--grid-size-card) var(--grid-size-card);
}

body.storefront-blueprint .builder-stage {
  background: transparent;
  border: 0;
}
