/* 全站顶栏 / 页脚：与首页 SHIBAKEN 一致（字体、品牌、链接层级） */

.sbk-site-chrome {
  --sbk-bg: #faf8f5;
  --sbk-ink: #2c231a;
  --sbk-ink-soft: #4a3f35;
  --sbk-muted: #8b7355;
  --sbk-footer: #1a1410;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.6;
  color: var(--sbk-ink-soft);
  background: var(--sbk-bg);
}

.sbk-site-chrome__main {
  flex: 1;
}

/* 首页 Hero 全屏：顶栏盖住首屏，保持 fixed */
.page-home-sbk .sbk-nav,
.page-product-sbk .sbk-nav {
  position: fixed;
}

.sbk-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212, 196, 176, 0.2);
}

.sbk-nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
}

.sbk-nav__brand {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--sbk-ink);
  text-decoration: none;
}

.sbk-nav__brand:hover {
  opacity: 0.92;
}

.sbk-nav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  column-gap: 1.75rem;
  row-gap: 0.5rem;
}

.sbk-nav__links .site-user-menu {
  flex-shrink: 0;
}

/* 双类选择器：压过首页 .page-home-sbk a { color: inherit } */
.sbk-nav .sbk-nav__links > a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--sbk-ink-soft);
  transition: color 0.2s;
  padding: 0.2rem 0;
  white-space: nowrap;
  text-decoration: none;
}

.sbk-nav .sbk-nav__links > a:hover {
  color: var(--sbk-ink);
}

@media (max-width: 640px) {
  .sbk-nav__links {
    column-gap: 1.25rem;
  }
}

.sbk-nav__cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15em;
  margin-left: 0.35em;
  padding: 0.12em 0.4em;
  font-size: 0.72em;
  font-weight: 600;
  line-height: 1;
  color: var(--sbk-bg);
  background: var(--sbk-ink);
  border-radius: 999px;
  vertical-align: 0.08em;
}

/* 结账流：顶栏内含步骤指示 */
.sbk-nav__row--checkout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.25rem;
}

.sbk-nav__row--checkout .sbk-flow__steps {
  justify-self: center;
  max-width: 100%;
}

@media (max-width: 900px) {
  .sbk-nav__row--checkout {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .sbk-nav__row--checkout .sbk-flow__steps {
    justify-self: stretch;
  }
}

.sbk-footer {
  margin-top: auto;
  padding: 3rem 1.5rem;
  background: var(--sbk-footer);
  color: var(--sbk-muted);
  text-align: center;
}

.sbk-footer__brand {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--sbk-muted);
}

.sbk-footer__legal {
  margin: 0;
  font-size: 0.875rem;
}

.sbk-footer__icp,
.sbk-footer__beian {
  margin: 0.45rem 0 0;
  font-size: 0.8125rem;
}

.sbk-footer__icp a,
.sbk-footer__beian a {
  color: var(--sbk-muted);
  text-decoration: none;
}

.sbk-footer__beian a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.sbk-footer__beian-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sbk-footer__icp a:hover,
.sbk-footer__beian a:hover {
  text-decoration: underline;
}
