@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&display=swap");

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #6b6b6b;
  --color-border: #e8e8e8;
  --color-flag-red: #bc002d;
  --header-height: 96px;
  --page-pad-x: clamp(18px, 3.2vw, 32px);
  --font-brand: "Outfit", sans-serif;
  --font-ui: "Outfit", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* 商品封面/主图：强制吃进容器，覆盖全局 height:auto */
img.product-card__image,
.product-gallery__main img,
.product-gallery__thumb img {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-search {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 120;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  padding: 14px var(--page-pad-x) 16px;
}

.site-search[hidden] {
  display: none;
}

.site-search__form {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(720px, 100%);
  margin: 0 auto;
}

.site-search__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  font: inherit;
  color: inherit;
  background: #fff;
}

.site-search__input:focus {
  outline: none;
  border-color: #111;
}

.site-search__submit,
.site-search__close {
  height: 44px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

.site-search__submit {
  padding: 0 16px;
  background: #111;
  color: #fff;
  font: inherit;
}

.site-search__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  background: transparent;
  color: #444;
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--page-pad-x);
}

.site-header__left,
.site-header__right {
  display: flex;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
}

.site-header__left {
  gap: 8px;
  z-index: 1;
}

.site-header__right {
  justify-content: flex-end;
  gap: 20px;
  z-index: 1;
}

.site-header__brand {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  padding: 0 14px;
  background: var(--color-bg);
  font-family: var(--font-brand);
  font-size: 2.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: lowercase;
  white-space: nowrap;
}

.site-header__brand--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(396px, 52vw);
  text-transform: none;
}

.site-header__logo {
  display: block;
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  transition: opacity 0.2s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  opacity: 0.65;
  outline: none;
}

.icon-btn svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-btn svg {
  width: 28px;
  height: 28px;
}

/* —— Page menu (PC left / mobile drawer) —— */
.site-nav {
  display: none;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.site-nav__list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(10px, 1.2vw, 22px);
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.28) transparent;
}

.site-nav__list::-webkit-scrollbar {
  height: 4px;
}

.site-nav__list::-webkit-scrollbar-track {
  background: transparent;
}

.site-nav__list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.28);
  border-radius: 999px;
}

.site-nav__list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.42);
}

.site-nav__link {
  display: inline-block;
  flex: 0 0 auto;
  max-width: 8.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--nav-fs, 14px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1.3;
  transition: opacity 0.2s ease;
}

.site-nav__item--has-children {
  position: relative;
}

.site-nav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 40;
  min-width: 10rem;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--color-border, #e8e8e8);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.site-nav__item--has-children:hover > .site-nav__sub,
.site-nav__item--has-children:focus-within > .site-nav__sub {
  display: block;
}

.site-nav__sub-link {
  display: block;
  padding: 8px 14px;
  font-size: calc(var(--nav-fs, 14px) * 0.95);
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__sub-link:hover,
.site-nav__sub-link:focus-visible {
  background: rgba(0, 0, 0, 0.04);
}

.site-nav__link:hover,
.site-nav__link:focus-visible {
  opacity: 0.55;
  outline: none;
}

.site-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  visibility: hidden;
  pointer-events: none;
}

.site-nav-drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}

.site-nav-drawer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(28, 24, 20, 0.42);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.28s ease;
}

.site-nav-drawer.is-open .site-nav-drawer__backdrop {
  opacity: 1;
}

.site-nav-drawer__panel {
  --drawer-bg: var(--color-bg, #ffffff);
  --drawer-ink: var(--color-text, #1c1916);
  --drawer-line: color-mix(in srgb, var(--color-text, #1c1916) 14%, transparent);
  --drawer-serif: "Cormorant Garamond", "Times New Roman", serif;

  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(82vw, 360px);
  height: 100%;
  height: 100dvh;
  padding: 0;
  background: var(--drawer-bg);
  color: var(--drawer-ink);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.18);
  transform: translateX(-102%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav-drawer.is-open .site-nav-drawer__panel {
  transform: translateX(0);
}

.site-nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 10px 14px 10px 22px;
  border-bottom: 1px solid var(--drawer-line);
}

.site-nav-drawer__login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  font-family: var(--drawer-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav-drawer__login svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav-drawer__login span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.site-nav-drawer__close svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.site-nav-drawer__nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.site-nav-drawer__list {
  margin: 0;
  padding: 28px 0 20px;
  list-style: none;
}

.site-nav-drawer__row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav-drawer__row .site-nav-drawer__link {
  flex: 1;
  min-width: 0;
  padding-right: 8px;
}

.site-nav-drawer__link {
  display: block;
  padding: 16px 24px;
  font-family: var(--drawer-serif);
  font-size: clamp(1.35rem, 4.6vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: inherit;
  text-decoration: none;
  border: 0;
  background: transparent;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-nav-drawer__link:hover,
.site-nav-drawer__link:focus-visible {
  opacity: 0.72;
  outline: none;
}

.site-nav-drawer__toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s ease, transform 0.25s ease;
}

.site-nav-drawer__toggle:hover,
.site-nav-drawer__toggle:focus-visible {
  opacity: 1;
  outline: none;
}

.site-nav-drawer__toggle svg {
  display: block;
  transition: transform 0.25s ease;
}

.site-nav-drawer__item--has-children.is-open > .site-nav-drawer__row .site-nav-drawer__toggle svg {
  transform: rotate(180deg);
}

.site-nav-drawer__sub {
  margin: 0;
  padding: 0 0 8px 28px;
  list-style: none;
}

.site-nav-drawer__sub[hidden] {
  display: none;
}

.site-nav-drawer__sub-link {
  display: block;
  padding: 8px 24px 8px 0;
  font-size: 0.95rem;
  color: inherit;
  text-decoration: none;
  opacity: 0.78;
}

.site-nav-drawer__sub-link:hover,
.site-nav-drawer__sub-link:focus-visible {
  opacity: 1;
}

.site-nav-drawer__foot {
  margin-top: auto;
  padding: 8px 8px 28px;
  border-top: 1px solid var(--drawer-line);
}

.site-nav-drawer__locale {
  position: relative;
}

.site-nav-drawer__locale + .site-nav-drawer__locale {
  border-top: 1px solid var(--drawer-line);
}

.site-nav-drawer__locale-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 16px 16px 16px 18px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-family: var(--drawer-serif);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
}

.site-nav-drawer__locale-btn span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav-drawer__locale-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.site-nav-drawer__locale.is-open .site-nav-drawer__locale-btn svg {
  transform: rotate(180deg);
}

.site-nav-drawer__locale-menu {
  margin: 0 12px 10px;
  padding: 6px 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--drawer-line);
  background: color-mix(in srgb, var(--drawer-bg) 88%, var(--drawer-ink) 12%);
}

.site-nav-drawer__locale-option {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  font-family: var(--drawer-serif);
  font-size: 0.98rem;
  cursor: pointer;
}

.site-nav-drawer__locale-option:hover,
.site-nav-drawer__locale-option:focus-visible,
.site-nav-drawer__locale-option.is-selected {
  background: color-mix(in srgb, var(--drawer-ink) 6%, transparent);
  outline: none;
}

body.is-nav-open {
  overflow: hidden;
}

@media (min-width: 901px) {
  .site-header {
    height: auto;
    min-height: var(--header-height);
  }

  .site-header__inner {
    min-height: var(--header-height);
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .site-header__left,
  .site-header__right {
    max-width: calc(50% - 140px);
    align-self: center;
  }

  .site-header__left {
    overflow: visible;
    padding-right: 16px;
  }

  .site-header__right {
    overflow: hidden;
    padding-left: 16px;
  }

  .site-header--has-nav .menu-btn {
    display: none;
  }

  .site-nav {
    display: block;
    width: 100%;
  }

  .site-nav-drawer {
    display: none;
  }
}

.currency-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.currency-btn:hover,
.currency-btn:focus-visible {
  opacity: 0.65;
  outline: none;
}

.currency-btn__flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ddd;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.currency-btn__flag::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-flag-red);
  transform: translate(-50%, -50%);
}

.currency-btn__flag-img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ddd;
  flex-shrink: 0;
  background: #fff;
}

.currency-btn__chevron {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.locale-toolbar {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.locale-toolbar.is-open .currency-btn__chevron {
  transform: rotate(180deg);
}

.locale-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.locale-btn:hover,
.locale-btn:focus-visible {
  opacity: 0.65;
  outline: none;
}

.locale-btn__part {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.currency-menu--locale {
  min-width: 220px;
}

.locale-menu__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.locale-menu__text strong {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.locale-menu__text em {
  font-style: normal;
  font-size: 0.75rem;
  opacity: 0.65;
  letter-spacing: 0.02em;
}

.currency-switch {
  position: relative;
}

.currency-switch.is-open .currency-btn__chevron {
  transform: rotate(180deg);
}

.currency-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  min-width: 148px;
  max-height: min(360px, 70vh);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.currency-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-align: left;
}

.currency-menu__item img {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid #e5e5e5;
  background: #f5f5f5;
}

.currency-menu__item:hover,
.currency-menu__item.is-selected {
  background: #f5f5f5;
}

.site-main {
  min-height: calc(100vh - var(--header-height));
}

.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1c1c1c;
}

.hero-carousel__track {
  position: relative;
  width: 100%;
}

.hero-carousel__slide {
  display: none;
  width: 100%;
}

.hero-carousel__slide.is-active {
  display: block;
  animation: hero-fade 0.55s ease;
}

.hero-carousel__link {
  display: block;
  line-height: 0;
}

.hero-carousel__image {
  display: block;
  width: 100%;
  height: clamp(320px, 58vw, calc(100vh - var(--header-height)));
  max-height: 860px;
  object-fit: cover;
  object-position: center right;
}

.hero-carousel__picture {
  display: block;
  width: 100%;
}

.hero-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-carousel__dots[hidden] {
  display: none;
}

.hero-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-carousel__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

@keyframes hero-fade {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

.collection-list {
  padding: clamp(56px, 7vw, 90px) var(--page-pad-x) clamp(64px, 8vw, 100px);
  background: #fff;
}

.collection-list__inner {
  width: min(100%, 1555px);
  margin: 0 auto;
}

.collection-list__title {
  margin: 0 0 46px;
  font-family: var(--font-brand);
  font-size: clamp(2.15rem, 2.9vw, 2.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--color-text);
}

.collection-list__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.collection-list__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.collection-list__item:hover,
.collection-list__item:focus-visible {
  opacity: 0.85;
  outline: none;
}

.collection-list__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: color-mix(in srgb, var(--color-accent, #8b7355) 18%, #f3f0eb);
}

.collection-list__image {
  position: absolute;
  inset: 0;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
}

.collection-list__name {
  display: block;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text);
}

.new-arrivals {
  padding: 0 var(--page-pad-x) clamp(64px, 8vw, 100px);
  background: #fff;
}

.new-arrivals__inner {
  width: min(100%, 1555px);
  margin: 0 auto;
}

.new-arrivals__title {
  margin: 0 0 40px;
  font-family: var(--font-brand);
  font-size: clamp(2rem, 2.6vw, 2.35rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-align: center;
  color: var(--color-text);
}

.new-arrivals__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* —— Decoration: text block —— */
.deco-text {
  padding: clamp(40px, 6vw, 72px) var(--page-pad-x);
  background: #fff;
}

.deco-text__inner {
  width: min(100%, 720px);
  margin: 0 auto;
  text-align: center;
}

.deco-text__title {
  margin: 0 0 18px;
  font-family: var(--font-brand);
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--color-text);
}

.deco-text__body {
  margin: 0;
  font-size: clamp(0.9375rem, 1.5vw, 1.0625rem);
  line-height: 1.75;
  color: #3a3a3a;
}

/* —— Decoration: centered button —— */
.deco-button {
  padding: clamp(28px, 4vw, 48px) var(--page-pad-x);
  background: #fff;
}

.deco-button__inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.deco-button__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  min-height: 48px;
  padding: 0 28px;
  background: var(--color-primary, #111);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.deco-button__btn:hover,
.deco-button__btn:focus-visible {
  opacity: 0.82;
  outline: none;
}

/* —— Decoration: banner —— */
.deco-banner {
  padding: 0;
  background: #fff;
}

.deco-banner__inner {
  width: 100%;
}

.deco-banner__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.deco-banner__picture,
.deco-banner__image {
  display: block;
  width: 100%;
  height: auto;
}

.deco-banner__image {
  max-height: 480px;
  object-fit: cover;
  object-position: center;
}

/* —— Decoration: notice strip —— */
.deco-notice {
  padding: 10px var(--page-pad-x, 16px);
  background: var(--deco-notice-bg, #f7f3ea);
  color: var(--deco-notice-color, #3d3428);
}

.deco-notice__inner {
  width: min(100%, 960px);
  margin: 0 auto;
  text-align: center;
}

.deco-notice__inner--stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deco-notice__title {
  display: block;
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.deco-notice__body,
.deco-notice__text,
.deco-notice__link {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.deco-notice__link {
  color: inherit;
  text-decoration: none;
}

.deco-notice__link:hover {
  text-decoration: underline;
}

.deco-notice__viewport {
  overflow: hidden;
  width: min(100%, 1100px);
  margin: 0 auto;
  height: 1.45em;
  position: relative;
}

.deco-notice__viewport--marquee {
  width: 100%;
  max-width: none;
}

.deco-notice__track {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 0.45s ease;
}

.deco-notice--vertical .deco-notice__track {
  flex-direction: column;
  transform: translateY(calc(-1 * var(--notice-index, 0) * 1.45em));
}

.deco-notice__slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 1.45em;
  box-sizing: border-box;
  padding: 0 8px;
}

/* 左右跑马灯 */
.deco-notice__marquee {
  display: flex;
  width: max-content;
  align-items: center;
  height: 1.45em;
  opacity: 0;
}

.deco-notice--marquee.is-marquee-ready .deco-notice__marquee {
  opacity: 1;
  animation: deco-notice-marquee var(--notice-marquee-duration, 18s) linear infinite;
}

.deco-notice--marquee.is-marquee-paused .deco-notice__marquee,
.deco-notice--marquee.is-marquee-static .deco-notice__marquee {
  animation-play-state: paused;
}

.deco-notice--marquee.is-marquee-static .deco-notice__marquee {
  opacity: 1;
  transform: none;
  animation: none;
  justify-content: center;
  width: 100%;
}

.deco-notice__marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-sizing: border-box;
}

.deco-notice__marquee-item {
  display: inline-flex;
  align-items: center;
}

.deco-notice__marquee-sep {
  display: inline-block;
  margin: 0 1.25rem;
  opacity: 0.55;
}

@keyframes deco-notice-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .deco-notice__track {
    transition: none;
  }

  .deco-notice--marquee .deco-notice__marquee {
    animation: none !important;
    opacity: 1;
    transform: none;
    width: 100%;
    justify-content: center;
  }
}

/* 页头装修区：贴顶、区块紧凑 */
.site-header-deco {
  position: relative;
  z-index: 40;
}

.site-header-deco .deco-notice {
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-header-deco .deco-text,
.site-header-deco .deco-button {
  padding-top: 16px;
  padding-bottom: 16px;
}

.site-header-deco .deco-banner__image {
  max-height: 160px;
}

@media (max-width: 640px) {
  .deco-text {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .deco-button__btn {
    width: min(100%, 280px);
  }

  .deco-banner__image {
    max-height: 280px;
  }

  .site-header-deco .deco-banner__image {
    max-height: 120px;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-width: 0;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.product-card__link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.new-arrivals__grid > li {
  min-width: 0;
  display: flex;
}

.new-arrivals__grid > li > .product-card,
.new-arrivals__grid > li > a.product-card {
  width: 100%;
}

.new-arrivals[data-text-align='left'] .product-card,
.new-arrivals[data-text-align='left'] .product-card__link {
  align-items: flex-start;
  text-align: left;
}

.new-arrivals[data-text-align='left'] .product-card__price {
  justify-content: flex-start;
}

.new-arrivals[data-text-align='right'] .product-card,
.new-arrivals[data-text-align='right'] .product-card__link {
  align-items: flex-end;
  text-align: right;
}

.new-arrivals[data-text-align='right'] .product-card__price {
  justify-content: flex-end;
}

.new-arrivals[data-text-align='center'] .product-card,
.new-arrivals[data-text-align='center'] .product-card__link {
  align-items: center;
  text-align: center;
}

.new-arrivals[data-text-align='center'] .product-card__price {
  justify-content: center;
}

.product-card:hover,
.product-card:focus-visible {
  opacity: 0.88;
  outline: none;
}

.new-arrivals--with-btn .product-card:hover,
.new-arrivals--with-btn .product-card:focus-visible {
  opacity: 1;
}

.new-arrivals--with-btn .product-card__link:hover,
.new-arrivals--with-btn .product-card__link:focus-visible {
  opacity: 0.88;
}

.product-card__media {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #f5f5f5;
  flex: 0 0 auto;
}

.product-card__ratio {
  display: block;
  width: 100%;
  height: 0;
  padding-top: 100%;
}

img.product-card__image,
.product-card__image {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  object-fit: contain;
  object-position: center center;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: center;
  color: #5c4630;
  background: #d8c3a3;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* 装修商品组件：图片填充方式 */
.new-arrivals[data-image-fit='cover'] .product-card__image {
  object-fit: cover;
  object-position: center center;
}

.new-arrivals[data-image-fit='contain'] .product-card__media {
  background: #f5f5f5;
}

.new-arrivals[data-image-fit='contain'] .product-card__image {
  object-fit: contain;
  object-position: center;
}

.new-arrivals[data-image-fit='fill'] .product-card__image {
  object-fit: fill;
  object-position: center;
}

.product-card__title {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: var(--product-title-size, 1rem);
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--product-title-color, var(--color-text));
}

.product-card__price {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  font-size: var(--product-price-size, 0.9375rem);
  line-height: 1.3;
}

.product-card__price-current {
  color: var(--product-price-color, var(--color-text));
}

.product-card__price-compare {
  color: #999;
  text-decoration: line-through;
  font-size: 0.85em;
}

.product-card__desc {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: var(--product-desc-size, 0.8125rem);
  line-height: 1.4;
  color: var(--product-desc-color, #666);
  word-break: break-word;
}

.product-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 0;
  border-radius: 4px;
  background: #e10600;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.product-card__btn:hover,
.product-card__btn:focus-visible {
  opacity: 0.9;
  outline: none;
}

@media (max-width: 1024px) {
  .collection-list__inner {
    width: min(100%, 1037px);
  }

  .collection-list__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 17px;
  }

  .new-arrivals__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero-carousel__image {
    height: clamp(280px, 95vw, 520px);
    object-position: 68% center;
  }

  .hero-carousel__dots {
    bottom: 12px;
  }

  .collection-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 10px;
  }

  .new-arrivals__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }

  /* 尊重装修配置的字号变量；无配置时用移动端默认 */
  .product-card__title {
    font-size: var(--product-title-size, 0.9375rem);
  }

  .product-card__price {
    font-size: var(--product-price-size, 0.875rem);
  }

  :root {
    --header-height: 120px;
    --page-pad-x: 16px;
  }

  .site-header__right {
    gap: 2px;
  }

  .site-header__brand {
    font-size: 2.025rem;
  }

  .site-header__brand--logo {
    max-width: min(356px, 58vw);
  }

  .site-header__logo {
    max-height: 112px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .icon-btn svg {
    width: 22px;
    height: 22px;
  }

  .menu-btn svg {
    width: 24px;
    height: 24px;
  }

  .icon-btn--search {
    display: inline-flex;
  }

  .locale-btn span {
    display: none;
  }

  .locale-btn .currency-btn__chevron {
    display: none;
  }

  .locale-btn {
    gap: 6px;
  }

  .locale-toolbar {
    gap: 0;
  }

  .currency-btn span {
    display: none;
  }

  .currency-btn__chevron {
    display: none;
  }
}

@media (max-width: 380px) {
  .icon-btn--account {
    display: none;
  }

  .site-header__brand--logo {
    max-width: min(297px, 54vw);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-footer {
  --footer-bg: #faf8f2;
  --footer-border: #e6e2d8;
  padding: clamp(48px, 6vw, 72px) var(--page-pad-x) 36px;
  background: var(--footer-bg);
  color: var(--color-text);
}

.site-footer__inner {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(140px, 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.site-footer__heading {
  margin: 0 0 16px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer__text {
  margin: 0 0 22px;
  max-width: 36em;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #3a3a3a;
}

.site-footer__form {
  display: flex;
  align-items: center;
  max-width: 420px;
  border: 1px solid #1a1a1a;
  background: #fff;
}

.site-footer__input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 0;
  outline: none;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: transparent;
}

.site-footer__input::placeholder {
  color: #9a9a9a;
}

.site-footer__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
}

.site-footer__submit svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer__submit:hover,
.site-footer__submit:focus-visible {
  opacity: 0.65;
  outline: none;
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links li + li {
  margin-top: 12px;
}

.site-footer__links a {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: #2a2a2a;
  transition: opacity 0.2s ease;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  opacity: 0.65;
  outline: none;
}

.site-footer__divider {
  height: 1px;
  margin: clamp(36px, 5vw, 52px) 0 28px;
  background: var(--footer-border);
}

.site-footer__payments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #d8d4cc;
  border-radius: 4px;
  background: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #1a1a1a;
}

.pay-badge--visa {
  color: #1a1f71;
  font-style: italic;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.pay-badge--discover {
  color: #f76b1c;
  font-size: 0.55rem;
  letter-spacing: 0.04em;
}

.pay-badge--mastercard {
  gap: 0;
  padding: 0 6px;
}

.pay-badge--mastercard i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.pay-badge--mastercard i:first-child {
  background: #eb001b;
}

.pay-badge--mastercard i:last-child {
  margin-left: -6px;
  background: #f79e1b;
  opacity: 0.92;
}

.pay-badge--diners {
  color: #0079be;
  font-size: 0.55rem;
}

.pay-badge--amex {
  color: #fff;
  background: #2e77bc;
  border-color: #2e77bc;
  font-size: 0.625rem;
  letter-spacing: 0.06em;
}

.pay-badge--jcb {
  color: #fff;
  background: #0b4ea2;
  border-color: #0b4ea2;
}

.pay-badge--paypal {
  gap: 0;
  color: #003087;
  font-size: 0.6875rem;
  font-style: italic;
}

.pay-badge--paypal span {
  color: #009cde;
}

.pay-badge--apple::before {
  content: "";
  width: 12px;
  height: 14px;
  margin-right: 3px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath d='M13.2 10.6c0-2 1.6-3 1.7-3.1-0.9-1.4-2.4-1.5-2.9-1.6-1.2-0.1-2.4 0.7-3 0.7-0.6 0-1.6-0.7-2.7-0.7-1.4 0-2.6 0.8-3.3 2.1-1.4 2.5-0.4 6.1 1 8.1 0.7 1 1.5 2.1 2.6 2 1 0 1.4-0.7 2.7-0.7s1.6 0.7 2.7 0.7c1.1 0 1.8-1 2.5-2 0.8-1.1 1.1-2.2 1.1-2.3-0.1 0-2.1-0.8-2.1-3.2zm-2-5.9c0.6-0.7 1-1.7 0.9-2.7-0.9 0-1.9 0.6-2.5 1.3-0.5 0.6-1 1.6-0.9 2.6 1 0.1 1.9-0.5 2.5-1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 20'%3E%3Cpath d='M13.2 10.6c0-2 1.6-3 1.7-3.1-0.9-1.4-2.4-1.5-2.9-1.6-1.2-0.1-2.4 0.7-3 0.7-0.6 0-1.6-0.7-2.7-0.7-1.4 0-2.6 0.8-3.3 2.1-1.4 2.5-0.4 6.1 1 8.1 0.7 1 1.5 2.1 2.6 2 1 0 1.4-0.7 2.7-0.7s1.6 0.7 2.7 0.7c1.1 0 1.8-1 2.5-2 0.8-1.1 1.1-2.2 1.1-2.3-0.1 0-2.1-0.8-2.1-3.2zm-2-5.9c0.6-0.7 1-1.7 0.9-2.7-0.9 0-1.9 0.6-2.5 1.3-0.5 0.6-1 1.6-0.9 2.6 1 0.1 1.9-0.5 2.5-1.2z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pay-badge--apple::after {
  content: "Pay";
  font-size: 0.75rem;
  font-weight: 600;
}

.pay-badge--google {
  gap: 2px;
  font-size: 0.6875rem;
  font-weight: 500;
}

.pay-badge--google b {
  font-weight: 700;
  color: #4285f4;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  text-align: center;
  color: #5a5a5a;
}

.site-footer__copy--left {
  text-align: left;
}

.site-footer__copy--center {
  text-align: center;
}

.site-footer__copy--right {
  text-align: right;
}

@media (max-width: 900px) {
  .site-footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__newsletter {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-footer__top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .site-footer__form {
    max-width: none;
  }

  .site-footer__payments {
    gap: 8px;
  }

  .site-footer__heading {
    margin-bottom: 12px;
  }
}

/* —— Policy / info article page —— */
.site-page {
  padding: clamp(32px, 5vw, 56px) var(--page-pad-x) clamp(48px, 6vw, 80px);
  background: #fff;
}

.site-page__inner {
  width: min(100%, 760px);
  margin: 0 auto;
}

.site-page__title {
  margin: 0 0 28px;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--color-text, #1a1a1a);
  word-break: break-word;
}

.site-page__empty {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.site-page__content {
  font-size: 1rem;
  line-height: 1.75;
  color: #2a2a2a;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-page__content > *:first-child {
  margin-top: 0;
}

.site-page__content > *:last-child {
  margin-bottom: 0;
}

.site-page__content p {
  margin: 0 0 1em;
}

.site-page__content h2,
.site-page__content h3,
.site-page__content h4 {
  margin: 1.5em 0 0.6em;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text, #1a1a1a);
}

.site-page__content ul,
.site-page__content ol {
  margin: 0 0 1em;
  padding-left: 1.4em;
}

.site-page__content a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-page__content img {
  max-width: 100%;
  height: auto;
}

.site-page__content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.site-page__content pre,
.site-page__content iframe,
.site-page__content video {
  max-width: 100%;
}

@media (max-width: 640px) {
  .site-page {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .site-page__title {
    margin-bottom: 20px;
  }

  .site-page__content {
    font-size: 0.9375rem;
  }
}

/* —— Product detail —— */
.product-body {
  background: #f0f0f0;
}

.product-detail {
  padding: clamp(20px, 3.5vw, 36px) var(--page-pad-x) clamp(40px, 6vw, 72px);
  background: #f0f0f0;
}

.product-detail__inner {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.product-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 16px;
  align-items: start;
}

.product-panel {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 0;
  overflow: hidden;
  min-width: 0;
}

.product-panel--gallery {
  padding: 14px;
  overflow: visible;
}

.product-panel--info {
  padding: clamp(20px, 3vw, 28px);
  position: sticky;
  top: calc(var(--header-height) + 12px);
}

.product-panel--tabs {
  margin-top: 16px;
  padding: clamp(18px, 2.5vw, 24px);
}

.product-gallery {
  display: grid;
  grid-template-columns: 84px minmax(0, 550px);
  grid-template-areas: "thumbs main";
  gap: 24px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.product-gallery__thumbs-row {
  grid-area: thumbs;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 750px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.product-gallery__thumbs-row.has-nav {
  grid-template-columns: 1fr;
  grid-template-rows: 28px minmax(0, 1fr) 28px;
}

.product-gallery__thumbs {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-snap-type: y proximity;
  overscroll-behavior-y: contain;
}

.product-gallery__thumb {
  display: block;
  flex: 0 0 auto;
  width: 68px;
  height: 68px;
  min-width: 68px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  background: #f7f7f7;
  scroll-snap-align: start;
  transition: border-color 0.2s ease;
}

.product-gallery__thumb.is-active,
.product-gallery__thumb:hover,
.product-gallery__thumb:focus-visible {
  border-color: #222;
  outline: none;
}

.product-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.product-gallery__placeholder,
.product-gallery__main-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: 6px;
  color: #8a8a8a;
  font-size: 0.75rem;
  text-align: center;
}

.product-gallery__main-placeholder {
  min-height: 0;
  background: #f5f5f5;
  border-radius: 8px;
}

.product-gallery__main-placeholder small {
  font-size: 0.6875rem;
  color: #aaa;
}

.product-gallery__thumbs-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 28px;
  padding: 0;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.product-gallery__thumbs-nav:hover,
.product-gallery__thumbs-nav:focus-visible {
  background: #f5f5f5;
  border-color: #bbb;
  outline: none;
}

.product-gallery__thumbs-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.product-gallery__thumbs-nav svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(90deg);
}

.product-gallery__main {
  position: relative;
  grid-area: main;
  width: 100%;
  max-width: 550px;
  height: auto;
  max-height: 750px;
  aspect-ratio: 550 / 750;
  min-width: 0;
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 8px;
}

.product-gallery__main-btn {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.product-gallery__main img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.product-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #222;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.product-gallery__arrow--prev {
  left: 10px;
}

.product-gallery__arrow--next {
  right: 10px;
}

.product-gallery__arrow:hover,
.product-gallery__arrow:focus-visible {
  background: #fff;
  outline: none;
}

.product-gallery__arrow svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-gallery__counter {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* 商品图放大灯箱 */
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 16px;
}

.product-lightbox[hidden] {
  display: none !important;
}

.product-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 10, 10, 0.82);
  cursor: pointer;
}

.product-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: min(100%, 920px);
  max-height: min(90vh, 900px);
}

.product-lightbox__figure {
  margin: 0;
  display: grid;
  gap: 10px;
  justify-items: center;
  min-width: 0;
}

.product-lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 820px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}

.product-lightbox__count {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.product-lightbox__close,
.product-lightbox__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.product-lightbox__close:hover,
.product-lightbox__nav:hover,
.product-lightbox__close:focus-visible,
.product-lightbox__nav:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  outline: none;
}

.product-lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 999px;
}

.product-lightbox__nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  flex-shrink: 0;
}

.product-lightbox__nav[hidden] {
  visibility: hidden;
  pointer-events: none;
}

.product-lightbox__close svg,
.product-lightbox__nav svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 720px) {
  .product-lightbox__dialog {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    justify-items: center;
    width: min(100%, 520px);
  }

  .product-lightbox__nav--prev {
    order: 2;
    justify-self: start;
  }

  .product-lightbox__figure {
    order: 1;
    width: 100%;
  }

  .product-lightbox__nav--next {
    order: 2;
    justify-self: end;
    margin-top: -52px;
  }

  .product-lightbox__close {
    top: 8px;
    right: 8px;
  }
}

.product-info__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #111;
}

.product-info__price {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  margin: 0 0 18px;
  font-weight: 700;
  color: #111;
}

.product-info__price-current {
  font-size: clamp(2.625rem, 4.8vw, 3.225rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.product-info__price-compare {
  color: #9a9a9a;
  text-decoration: line-through;
  font-size: 1.05rem;
  font-weight: 500;
}

.product-info__options {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #efefef;
}

.product-option {
  margin: 14px 0 0;
}

.product-option__label {
  margin-bottom: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #444;
  letter-spacing: 0.02em;
}

.product-option__swatches,
.product-option__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-option__swatch,
.product-option__size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: #fff;
  font-size: 0.875rem;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.product-option__color-set {
  gap: 8px;
  max-width: 100%;
  height: auto;
  min-height: 40px;
  padding: 6px 12px 6px 6px;
}

.product-option__color-set img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.product-option__color-set-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 12rem;
  line-height: 1.2;
}

.product-option__swatch.is-selected,
.product-option__size.is-selected {
  border-color: #1773b0;
  box-shadow: 0 0 0 1px #1773b0;
  background: #f5faff;
}

.product-option__swatch:hover,
.product-option__size:hover,
.product-option__swatch:focus-visible,
.product-option__size:focus-visible {
  border-color: #1773b0;
  outline: none;
}

.product-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.product-qty__btn {
  width: 44px;
  background: #f5f5f5;
  font-size: 1.1rem;
  line-height: 1;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}

.product-qty__btn:hover,
.product-qty__btn:focus-visible {
  background: #ececec;
  outline: none;
}

.product-qty__input {
  width: 56px;
  border: 0;
  border-left: 1px solid #e5e5e5;
  border-right: 1px solid #e5e5e5;
  text-align: center;
  font: inherit;
  font-size: 0.9375rem;
  background: #fff;
  -moz-appearance: textfield;
}

.product-qty__input::-webkit-outer-spin-button,
.product-qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0 0;
}

.product-actions__cart,
.product-actions__buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.product-actions__cart {
  background: #f0f0f0;
  color: #111;
  border: 1px solid #d8d8d8;
}

.product-actions__buy {
  background: #1773b0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.product-actions__cart:hover,
.product-actions__buy:hover,
.product-actions__cart:focus-visible,
.product-actions__buy:focus-visible {
  filter: brightness(0.96);
  outline: none;
}

.product-share {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #efefef;
}

.product-share__label {
  font-size: 0.8125rem;
  color: #777;
}

.product-share__icons {
  display: flex;
  gap: 10px;
}

.product-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #555;
  transition: opacity 0.15s ease;
}

.product-share__link:hover,
.product-share__link:focus-visible {
  opacity: 0.6;
  outline: none;
}

.product-share__link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.product-tabs {
  margin: 0;
}

.product-tabs__nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #ececec;
  margin-bottom: 16px;
}

.product-tabs__tab {
  min-width: auto;
  height: 40px;
  padding: 0 4px 12px;
  margin-right: 20px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #666;
  cursor: pointer;
}

.product-tabs__tab.is-active {
  color: #111;
  border-bottom-color: #1773b0;
}

.product-tabs__panel {
  display: none;
  min-height: 80px;
  margin: 0;
  padding: 0;
  border: 0;
}

.product-tabs__panel.is-active {
  display: block;
}

.product-tabs__content {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #333;
  overflow-wrap: anywhere;
}

.product-tabs__content img {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  margin: 0.75em 0;
}

.product-tabs__content p {
  margin: 0.6em 0;
}

.product-tabs__content ul,
.product-tabs__content ol {
  margin: 0.6em 0;
  padding-left: 1.25em;
}

.product-tabs__content--empty {
  color: #9a9a9a;
}

.product-tabs__content--common {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.product-tabs__content--common:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 960px) {
  .product-detail__layout {
    grid-template-columns: 1fr;
  }

  .product-panel--info {
    position: static;
  }

  .product-gallery {
    width: 100%;
    max-width: 658px; /* 84 + 24 + 550 */
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .product-panel--gallery {
    padding: 10px;
  }

  .product-gallery {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "main"
      "thumbs";
    gap: 22px;
    align-items: start;
    max-width: 100%;
    margin: 0;
  }

  .product-gallery__thumbs-row {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .product-gallery__thumbs-row.has-nav {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    grid-template-rows: auto;
  }

  .product-gallery__thumbs {
    flex-direction: row;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 4px;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    overscroll-behavior-y: auto;
  }

  .product-gallery__thumbs-nav {
    width: 28px;
    height: 60px;
  }

  .product-gallery__thumbs-nav svg {
    transform: none;
  }

  .product-gallery__thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
  }

  .product-gallery__main {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: 550 / 750;
    border-radius: 10px;
    touch-action: pan-y;
  }

  /* 移动端主图用左右滑动切图，不显示箭头 */
  .product-gallery__arrow,
  .product-gallery__counter {
    display: none !important;
  }

  .product-actions {
    grid-template-columns: 1fr;
  }
}

/* 装修排版：分类 / 商品列数 */
.collection-list__grid--grid-2,
.new-arrivals__grid--grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.collection-list__grid--grid-3,
.new-arrivals__grid--grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collection-list__grid--grid-4,
.new-arrivals__grid--grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.collection-list__grid--grid-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.new-arrivals__grid--row {
  display: flex;
  gap: 17px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.new-arrivals__grid--row > li {
  flex: 0 0 min(240px, 70vw);
  scroll-snap-align: start;
}

@media (max-width: 1024px) {
  .collection-list__grid--grid-4,
  .new-arrivals__grid--grid-4,
  .collection-list__grid--grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .collection-list__grid--grid-2,
  .collection-list__grid--grid-3,
  .collection-list__grid--grid-4,
  .collection-list__grid--grid-6,
  .new-arrivals__grid--grid-2,
  .new-arrivals__grid--grid-3,
  .new-arrivals__grid--grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .new-arrivals__grid--row > li {
    flex-basis: min(200px, 72vw);
  }
}

.collection-list__placeholder,
.product-card__placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: color-mix(in srgb, var(--color-accent, #8b7355) 18%, #f3f0eb);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 12px;
}

.product-card__media .product-card__placeholder {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
}

.collection-list__media .collection-list__placeholder {
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

.section-empty {
  margin: 0;
  padding: 32px 16px;
  text-align: center;
  color: var(--color-muted);
}

/* 分类商品列表页 */
.category-page__header {
  padding: clamp(36px, 5vw, 64px) var(--page-pad-x) clamp(20px, 3vw, 32px);
}

.category-page__header-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.category-page__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--color-muted, #888);
}

.category-page__crumb a {
  color: inherit;
  text-decoration: none;
}

.category-page__crumb a:hover,
.category-page__crumb a:focus-visible {
  color: var(--color-text);
  text-decoration: underline;
}

.category-page__title {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--color-text);
}

.category-page__desc {
  margin: 12px 0 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--color-muted, #666);
}

.category-page__children {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.category-page__child-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--color-border, #ddd);
  border-radius: 999px;
  font-size: 13px;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.category-page__child-link:hover,
.category-page__child-link:focus-visible {
  border-color: var(--color-text);
  background: rgba(0, 0, 0, 0.03);
}

.category-page__count {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--color-muted, #888);
}

.category-page__products {
  padding-top: 8px;
}

.category-page__back {
  margin: 8px 0 0;
  text-align: center;
}

.category-page__back a {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
}

.hero-carousel__image--placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: linear-gradient(135deg, var(--color-primary, #111), var(--color-accent, #8b7355));
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 600;
}

/* 商品优惠券提示 */
.product-coupons {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #fff7f0;
  border: 1px solid #f0dcc8;
  border-radius: 8px;
}

.product-coupons__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted, #666);
  margin-bottom: 8px;
}

.product-coupons__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.product-coupons__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
}

.product-coupons__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent, #8b7355);
}

.product-coupons__text {
  flex: 1;
  min-width: 140px;
}

.product-coupons__code {
  font-size: 0.75rem;
  color: var(--color-muted, #666);
  letter-spacing: 0.04em;
}

.product-info__stock {
  margin: 0 0 4px;
  font-size: 0.8125rem;
  color: #666;
}

/* 购物车角标 */
.icon-btn__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

/* 购物车抽屉 */
html.is-cart-open {
  overflow: hidden;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 130;
  pointer-events: none;
}

.cart-drawer[aria-hidden="false"] {
  pointer-events: auto;
}

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.25s ease;
  cursor: pointer;
}

.cart-drawer[aria-hidden="false"] .cart-drawer__backdrop {
  opacity: 1;
}

.cart-drawer__panel {
  --cart-accent: #e03131;
  --cart-title: #e85d4c;
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(400px, 100%);
  height: 100%;
  background: #fff;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

.cart-drawer[aria-hidden="false"] .cart-drawer__panel {
  transform: translateX(0);
}

.cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 16px 18px;
  border-bottom: 1px solid #ececec;
}

.cart-drawer__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
}

.cart-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #333;
  cursor: pointer;
}

.cart-drawer__close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
}

.cart-drawer__promo {
  flex-shrink: 0;
  margin: 0;
  padding: 12px 16px;
  background: #ffe4df;
  color: #333;
  font-size: 0.875rem;
  line-height: 1.45;
  text-align: center;
}

.cart-drawer__promo strong {
  font-weight: 700;
  color: #111;
}

.cart-drawer__promo.is-success {
  background: #e8f6ee;
  color: #1b7a3d;
}

.cart-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
}

.cart-drawer__empty {
  padding: 48px 8px;
  text-align: center;
  color: var(--color-muted);
}

.cart-drawer__continue {
  margin-top: 12px;
  border: 0;
  background: none;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.cart-drawer__list {
  flex: 1 0 auto;
}

.cart-line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid #ececec;
}

.cart-line__thumb {
  display: block;
  width: 88px;
  height: 88px;
  overflow: hidden;
  background: #f3f0eb;
}

.cart-line__thumb img,
.cart-line__ph {
  width: 88px;
  height: 88px;
  object-fit: cover;
  display: block;
}

.cart-line__info {
  min-width: 0;
}

.cart-line__title {
  margin: 0 0 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}

.cart-line__title a {
  color: var(--cart-title);
  text-decoration: none;
}

.cart-line__title a:hover,
.cart-line__title a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.cart-line__price {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #111;
}

.cart-line__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 12px;
  font-size: 0.8125rem;
  color: #555;
  line-height: 1.4;
}

.cart-line__attr b {
  font-weight: 700;
  color: #222;
}

.cart-line__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-line__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.cart-line__qty button,
.cart-line__qty input {
  border: 0;
  background: #fff;
  height: 34px;
  font: inherit;
  color: #222;
}

.cart-line__qty button {
  width: 34px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.cart-line__qty button:hover {
  background: #f7f7f7;
}

.cart-line__qty input {
  width: 40px;
  text-align: center;
  border-left: 1px solid #ececec;
  border-right: 1px solid #ececec;
  -moz-appearance: textfield;
}

.cart-line__qty input::-webkit-outer-spin-button,
.cart-line__qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.cart-line__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: #777;
}

.cart-line__remove:hover,
.cart-line__remove:focus-visible {
  color: var(--cart-accent);
  outline: none;
}

.cart-line__remove svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-drawer__coupon {
  margin-top: auto;
  padding-top: 16px;
}

.cart-drawer__coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  border: 1px solid #d8d8d8;
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}

.cart-drawer__input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0 12px;
  height: 44px;
  font: inherit;
  font-size: 0.875rem;
  outline: none;
  background: #fff;
}

.cart-drawer__apply {
  border: 0;
  border-left: 1px solid #d8d8d8;
  background: var(--cart-accent);
  color: #fff;
  padding: 0 18px;
  min-width: 88px;
  height: 44px;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}

.cart-drawer__apply:hover,
.cart-drawer__apply:focus-visible {
  filter: brightness(0.95);
  outline: none;
}

.cart-drawer__discount-msg {
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: #1b7a3d;
}

.cart-drawer__discount-msg.is-error {
  color: #b42318;
}

.cart-drawer__foot {
  flex-shrink: 0;
  padding: 14px 16px 20px;
  border-top: 1px solid #ececec;
  background: #fff;
}

.cart-drawer__tax-note {
  margin: 0 0 12px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #888;
  text-align: center;
}

.cart-drawer__total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111;
}

.cart-drawer__total-row strong {
  font-weight: 700;
}

.cart-drawer__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: var(--cart-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: filter 0.15s ease;
}

.cart-drawer__checkout:hover,
.cart-drawer__checkout:focus-visible {
  filter: brightness(0.95);
  outline: none;
}

/* Checkout */
.checkout-body {
  background: #fff;
}

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  min-height: 100vh;
}

.checkout__main {
  padding: 32px clamp(20px, 4vw, 48px) 56px;
  display: flex;
  justify-content: flex-end;
}

.checkout__main-inner {
  width: 100%;
  max-width: 560px;
}

.checkout__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e6e6e6;
}

.checkout__brand-link {
  font-family: var(--font-brand);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.checkout__brand-link--logo {
  display: inline-flex;
  align-items: center;
  max-width: min(300px, 55vw);
  text-transform: none;
}

.checkout__brand-logo {
  display: block;
  max-width: 100%;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.checkout__locale {
  flex-shrink: 0;
}

.checkout__locale .currency-menu {
  right: 0;
  left: auto;
}

.checkout__steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-bottom: 28px;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.checkout__steps a,
.checkout__step {
  color: inherit;
  border: 0;
  background: none;
  font: inherit;
  padding: 0;
  cursor: pointer;
}

.checkout__step:disabled {
  opacity: 0.55;
  cursor: default;
}

.checkout__step.is-active,
.checkout__steps strong {
  color: var(--color-text);
  font-weight: 700;
}

.checkout__express {
  margin-bottom: 8px;
}

.checkout__express-title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
}

.checkout__paypal {
  display: flex;
  width: 100%;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: #ffc439;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.checkout__paypal:hover {
  filter: brightness(0.97);
}

.checkout__paypal-logo {
  width: 92px;
  height: 24px;
}

.checkout__or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 20px 0 4px;
  color: var(--color-muted);
  font-size: 0.75rem;
}

.checkout__or::before,
.checkout__or::after {
  content: "";
  height: 1px;
  background: var(--color-border);
}

.checkout__section-head,
.checkout__heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 22px 0 14px;
}

.checkout__section-head h2,
.checkout__heading {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.checkout__section-head a {
  font-size: 0.875rem;
  color: #1773b0;
  text-decoration: none;
}

.checkout__muted-text {
  margin: -4px 0 16px;
  color: var(--color-muted);
  font-size: 0.875rem;
}

.checkout-field {
  display: block;
  position: relative;
  margin-bottom: 12px;
}

/* display:block 会盖掉原生 [hidden]，必须强制隐藏 */
.checkout [hidden] {
  display: none !important;
}

.checkout-field input,
.checkout-field select {
  width: 100%;
  height: 52px;
  padding: 18px 14px 6px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font: inherit;
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}

.checkout-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23666' stroke-width='1.5' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.checkout-field input:focus,
.checkout-field select:focus {
  outline: none;
  border-color: #1773b0;
  box-shadow: 0 0 0 1px #1773b0;
}

.checkout-field__label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #737373;
  font-size: 0.9375rem;
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}

.checkout-field.is-float input:focus + .checkout-field__label,
.checkout-field.is-float input:not(:placeholder-shown) + .checkout-field__label,
.checkout-field.is-float.is-filled .checkout-field__label,
.checkout-field.is-select .checkout-field__label {
  top: 10px;
  transform: none;
  font-size: 0.6875rem;
}

.checkout-field.is-select select {
  padding-top: 20px;
  padding-bottom: 4px;
}

.checkout-field--phone .checkout-field__prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  color: #737373;
  font-size: 0.875rem;
  pointer-events: none;
}

.checkout-field--phone input {
  padding-left: 48px;
}

.checkout-field--phone .checkout-field__label {
  left: 48px;
}

.checkout-field--phone.is-filled .checkout-field__label,
.checkout-field--phone input:focus + .checkout-field__label,
.checkout-field--phone input:not(:placeholder-shown) + .checkout-field__label {
  left: 48px;
}

.checkout-field--compact {
  margin-bottom: 0;
}

.checkout-field--compact input {
  height: 48px;
}

.checkout-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 2px 0 10px;
  font-size: 0.875rem;
  color: #545454;
}

.checkout-check input {
  margin-top: 3px;
}

.checkout-grid--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout__link-btn {
  display: inline-block;
  margin: 0 0 12px;
  border: 0;
  background: none;
  color: #1773b0;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.checkout__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.checkout__back {
  color: #1773b0;
  text-decoration: none;
  font-size: 0.875rem;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  padding: 0;
}

.checkout__continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 6px;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.checkout__continue:hover {
  opacity: 0.92;
}

.checkout__copy {
  margin-top: 48px;
  font-size: 0.75rem;
  color: var(--color-muted);
}

.checkout__summary {
  background: #f5f5f5;
  border-left: 1px solid #e6e6e6;
  padding: 40px clamp(20px, 3.5vw, 48px);
}

.checkout__summary-inner {
  position: sticky;
  top: 28px;
  max-width: 420px;
}

.checkout__summary-brand {
  display: none;
  margin: 0 0 28px;
  padding: 8px 0 16px;
  border-bottom: 1px solid #e6e6e6;
}

.checkout__summary-logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  max-width: min(270px, 60vw);
  font-family: var(--font-brand);
  font-size: 1.85rem;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: lowercase;
}

.checkout__summary-logo--img {
  text-transform: none;
}

.checkout__summary-logo img {
  display: block;
  max-width: 100%;
  max-height: 122px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.checkout-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.checkout-line__thumb {
  position: relative;
  width: 64px;
  height: 64px;
}

.checkout-line__thumb img,
.checkout-line__thumb span {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  display: block;
}

.checkout-line__thumb em {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(114, 114, 114, 0.9);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  line-height: 20px;
  text-align: center;
}

.checkout-line__body h3 {
  margin: 0 0 4px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.checkout-line__body p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.checkout-line__qty {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  border: 1px solid #d8d8d8;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.checkout-line__qty button,
.checkout-line__qty input {
  border: 0;
  background: #fff;
  height: 30px;
  font: inherit;
  color: #222;
}

.checkout-line__qty button {
  width: 30px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.checkout-line__qty button:hover {
  background: #f7f7f7;
}

.checkout-line__qty input {
  width: 36px;
  text-align: center;
  border-left: 1px solid #ececec;
  border-right: 1px solid #ececec;
  -moz-appearance: textfield;
}

.checkout-line__qty input::-webkit-outer-spin-button,
.checkout-line__qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.checkout-line > strong {
  font-size: 0.875rem;
  white-space: nowrap;
  padding-top: 4px;
}

.checkout-line__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #888;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.checkout-line__remove:hover,
.checkout-line__remove:focus-visible {
  color: #111;
  background: rgba(0, 0, 0, 0.06);
  outline: none;
}

.checkout-line__remove svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
}

.checkout__coupon {
  margin: 8px 0 18px;
  padding-top: 4px;
}

.checkout__coupon-note {
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: var(--color-muted);
  line-height: 1.4;
}

.checkout__coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.checkout__apply-btn {
  height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: #c8c8c8;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.checkout__apply-btn:hover {
  background: #111;
}

.checkout__coupon-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.checkout__chip {
  border: 1px dashed #bdbdbd;
  background: #fff;
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  color: #444;
}

.checkout__chip.is-active {
  border-style: solid;
  border-color: #1b7a3d;
  color: #1b7a3d;
  background: #eef8f1;
}

.checkout__coupon-msg {
  margin: 10px 0 0;
  font-size: 0.8125rem;
  color: #1b7a3d;
}

.checkout__coupon-msg.is-error {
  color: #b42318;
}

.checkout__totals {
  border-top: 1px solid #e1e1e1;
  padding-top: 16px;
  display: grid;
  gap: 12px;
}

.checkout__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
}

.checkout__muted {
  color: var(--color-muted);
}

.checkout__row--discount {
  color: #1b7a3d;
}

.checkout__row--total {
  padding-top: 14px;
  border-top: 1px solid #e1e1e1;
  align-items: baseline;
}

.checkout__row--total span:first-child {
  font-size: 1rem;
  font-weight: 500;
}

.checkout__row--total strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.checkout__row--total em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
  margin-right: 6px;
  vertical-align: 2px;
}

.checkout-ship-options,
.checkout-pay-options {
  display: grid;
  gap: 0;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 18px;
}

.checkout-ship-option,
.checkout-pay-option {
  display: block;
  padding: 0;
  border-bottom: 1px solid #e6e6e6;
  cursor: pointer;
  background: #fff;
}

.checkout-ship-option {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.checkout-pay-option:last-child,
.checkout-ship-option:last-child {
  border-bottom: 0;
}

.checkout-ship-option.is-selected,
.checkout-pay-option.is-selected {
  background: #f7f9fc;
}

.checkout-pay-option__head {
  display: grid;
  grid-template-columns: 20px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}

.checkout-pay-option__title {
  font-size: 0.9375rem;
  font-weight: 500;
}

.checkout-pay-option__brands {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.pay-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 20px;
  padding: 0 4px;
  border-radius: 3px;
  border: 1px solid #d8d8d8;
  background: #fff;
  font-style: normal;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #333;
}

.pay-mini--visa { color: #1a1f71; }
.pay-mini--mc { color: #eb001b; }
.pay-mini--amex { color: #2e77bc; }
.pay-mini--jcb { color: #0b6bb8; }

.checkout-card-fields {
  display: none;
  gap: 12px;
  margin: 0;
  padding: 0 16px 16px 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.checkout-pay-option.is-selected .checkout-card-fields {
  display: grid;
}

.checkout-billing {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 8px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.checkout-billing__option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid #ececec;
  cursor: pointer;
  font-size: 0.9375rem;
}

.checkout-billing__option:last-of-type {
  border-bottom: 0;
}

.checkout-billing__option.is-selected {
  background: #f5faff;
}

.checkout-billing__option input {
  width: 18px;
  height: 18px;
  accent-color: #1773b0;
}

.checkout-billing__form {
  padding: 16px;
  border-top: 1px solid #ececec;
  background: #fafafa;
}

.checkout-inline-summary {
  margin: 28px 0 8px;
  padding: 18px 16px 8px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fafafa;
}

.checkout-inline-summary .checkout__heading {
  margin-top: 0;
}

.checkout-inline-summary__lines {
  margin-bottom: 12px;
}

.checkout-inline-summary__totals {
  border-top: 1px solid #e6e6e6;
  padding-top: 8px;
}

.checkout-inline-summary .checkout-line {
  margin-bottom: 10px;
}

.checkout-card-fields__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .checkout-card-fields {
    padding-left: 16px;
  }

  .checkout-card-fields__row {
    grid-template-columns: 1fr;
  }
}

.checkout-ship-option__body {
  display: grid;
  gap: 2px;
}

.checkout-ship-option__body strong {
  font-size: 0.9375rem;
}

.checkout-ship-option__body em {
  font-style: normal;
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.checkout-ship-option__price {
  font-size: 0.875rem;
  font-weight: 600;
}

.checkout-review-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  padding: 14px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
}

.checkout-review-card > div {
  display: grid;
  gap: 4px;
  grid-column: 1;
}

.checkout-review-card span {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.checkout-review-card strong {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.checkout-review-card button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  border: 0;
  background: none;
  color: #1773b0;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

.checkout__success {
  margin-top: 24px;
  padding: 24px;
  border-radius: 8px;
  background: #eef8f1;
  text-align: center;
}

.checkout__success h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.checkout__success p {
  margin: 0 0 16px;
  color: #333;
}

.checkout__success .checkout__continue {
  width: 100%;
}

.checkout__submit-error {
  margin: 12px 0 0;
  color: #b42318;
  font-size: 0.875rem;
}

.order-success {
  padding: 48px 20px 72px;
}

.order-success__inner {
  width: min(720px, 100%);
  margin: 0 auto;
}

.order-success__card {
  padding: 36px 28px;
  border: 1px solid var(--color-border, #e8e4dc);
  background: #fff;
}

.order-success__eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

.order-success__title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.order-success__text {
  margin: 0 0 28px;
  color: #555;
  line-height: 1.5;
}

.order-success__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
  padding: 0;
}

.order-success__meta dt {
  margin: 0 0 4px;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.55;
}

.order-success__meta dd {
  margin: 0;
  font-weight: 600;
  word-break: break-all;
}

.order-success__ship {
  margin-bottom: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border, #e8e4dc);
}

.order-success__ship h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.order-success__ship p {
  margin: 0;
  line-height: 1.6;
  color: #444;
}

.order-success__lines {
  list-style: none;
  margin: 0 0 20px;
  padding: 20px 0 0;
  border-top: 1px solid var(--color-border, #e8e4dc);
}

.order-success__line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
}

.order-success__thumb {
  position: relative;
  width: 72px;
  height: 72px;
  background: #f4f2ec;
  overflow: hidden;
}

.order-success__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-success__thumb em {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.order-success__line-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.order-success__line-body strong {
  font-size: 0.95rem;
}

.order-success__line-body span {
  font-size: 0.85rem;
  opacity: 0.65;
}

.order-success__totals {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border, #e8e4dc);
}

.order-success__totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.order-success__totals-total {
  font-size: 1.05rem;
}

.order-success__actions {
  margin-top: 28px;
}

.order-success__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  background: var(--color-primary, #111);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.order-success__btn:hover {
  opacity: 0.85;
}

@media (max-width: 640px) {
  .order-success__meta {
    grid-template-columns: 1fr;
  }

  .order-success__card {
    padding: 28px 18px;
  }
}

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

  .checkout__summary {
    order: -1;
    border-left: 0;
    border-bottom: 1px solid var(--color-border);
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .checkout__summary-inner {
    position: static;
    max-width: none;
  }

  .checkout__summary-brand {
    display: block;
    margin-bottom: 24px;
    padding: 12px 0 16px;
    border-bottom: 1px solid #e6e6e6;
    text-align: center;
  }

  .checkout__summary-logo {
    justify-content: center;
    margin-inline: auto;
  }

  .checkout__main {
    justify-content: center;
    padding-top: 24px;
  }

  .checkout__brand {
    /* 移动端品牌已在订单摘要顶部展示，避免重复 */
    display: none;
  }

  .checkout-grid--2 {
    grid-template-columns: 1fr;
  }

  .checkout__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .checkout__continue {
    width: 100%;
    min-width: 0;
  }
}

/* —— Account / login / register —— */
.account-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.account-body .site-header {
  flex-shrink: 0;
}

.account-body .site-footer {
  flex-shrink: 0;
  margin-top: auto;
}

.account-page {
  flex: 1 0 auto;
  min-height: 0;
  padding: clamp(40px, 6vw, 72px) var(--page-pad-x) clamp(48px, 7vw, 80px);
  background: #fff;
}

.account-page--dash {
  padding: clamp(24px, 4vw, 40px) var(--page-pad-x) clamp(40px, 6vw, 64px);
  background: #f5f5f5;
}

.account-page__inner {
  width: min(100%, 960px);
  margin: 0 auto;
}

.account-page__inner--dash {
  width: min(100%, 1080px);
}

.account-auth--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* —— Logged-in dashboard —— */
.account-dash {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.account-dash__nav {
  padding-top: 4px;
}

.account-dash__group + .account-dash__group {
  margin-top: 28px;
}

.account-dash__group-title {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #222;
}

.account-dash__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.account-dash__links li + li {
  margin-top: 6px;
}

.account-dash__link {
  display: inline-block;
  font-size: 0.875rem;
  color: #555;
  text-decoration: none;
  line-height: 1.5;
}

.account-dash__link:hover,
.account-dash__link:focus-visible {
  color: #1677ff;
  outline: none;
}

.account-dash__link.is-active {
  color: #1677ff;
  font-weight: 500;
}

.account-dash__main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.account-card {
  position: relative;
  padding: clamp(18px, 2.5vw, 24px);
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}

.account-card__exit {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 0.875rem;
  color: #1677ff;
  text-decoration: none;
}

.account-card__exit:hover,
.account-card__exit:focus-visible {
  text-decoration: underline;
  outline: none;
}

.account-card__profile {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-right: 48px;
}

.account-card__avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
}

.account-card__avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

.account-card__welcome {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 14px;
  font-size: 1.125rem;
  font-weight: 600;
  color: #222;
}

.account-card__edit {
  display: inline-flex;
  color: #999;
}

.account-card__edit:hover,
.account-card__edit:focus-visible {
  color: #1677ff;
  outline: none;
}

.account-card__meta {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-card__meta > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.account-card__meta dt {
  margin: 0;
  color: #888;
  font-weight: 400;
  min-width: 4.5em;
}

.account-card__meta dt::after {
  content: ":";
}

.account-card__meta dd {
  margin: 0;
  color: #444;
}

.account-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.account-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
}

.account-card__sub {
  margin-left: 6px;
  font-size: 0.8125rem;
  font-weight: 400;
  color: #999;
}

.account-card__more {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: #1677ff;
  text-decoration: none;
}

.account-card__more:hover,
.account-card__more:focus-visible {
  text-decoration: underline;
  outline: none;
}

.account-card__text {
  margin: 0 0 8px;
  font-size: 0.9375rem;
  color: #444;
  line-height: 1.55;
}

.account-card__placeholder {
  margin: 8px 0 16px;
  font-size: 0.9375rem;
  color: #888;
}

.account-orders {
  overflow-x: auto;
}

.account-orders__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.account-orders__table th {
  padding: 10px 12px;
  background: #f0f0f0;
  color: #555;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
}

.account-orders__table td {
  padding: 14px 12px;
  border-bottom: 1px solid #f0f0f0;
  color: #444;
  vertical-align: top;
}

.account-orders__link {
  color: #1677ff;
  text-decoration: none;
}

.account-orders__link:hover {
  text-decoration: underline;
}

.account-orders__date {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: #999;
}

.account-orders__op {
  color: #1677ff;
  text-decoration: none;
}

.account-orders__op:hover {
  text-decoration: underline;
}

.account-orders__empty-row td {
  border-bottom: 0;
  padding: 36px 16px 28px;
}

.account-orders__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.account-orders__empty p {
  margin: 0;
  color: #888;
  font-size: 0.9375rem;
}

.account-btn--inline {
  width: auto;
  min-width: 180px;
  padding: 0 28px;
}

.account-panel__title {
  margin: 0 0 12px;
  font-family: var(--font-brand);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  color: #555;
}

.account-panel__text {
  margin: 0 0 24px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #666;
}

.account-panel__text a {
  color: #2b6cb0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.account-panel__error {
  margin: 0 0 16px;
  padding: 10px 12px;
  background: #fff1f0;
  border: 1px solid #ffccc7;
  color: #cf1322;
  font-size: 0.875rem;
}

.account-panel__meta {
  margin: 0 0 24px;
  color: #888;
  font-size: 0.9rem;
}

.account-panel__forgot {
  margin: 0 0 18px;
  font-size: 0.8125rem;
  color: #888;
}

.account-panel__switch {
  margin: 20px 0 0;
  font-size: 0.875rem;
  color: #666;
}

.account-panel__switch a {
  color: #2b6cb0;
  text-decoration: underline;
}

.account-panel__switch--mobile {
  display: none;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.account-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d9d9d9;
  background: #fff;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.15s ease;
}

.account-field input:focus {
  border-color: #111;
}

.account-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #555;
}

.account-check input {
  margin-top: 3px;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  background: #111;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.account-btn:hover,
.account-btn:focus-visible {
  opacity: 0.85;
  outline: none;
}

.account-btn--ghost {
  background: #fff;
  color: #111;
  border: 1px solid #111;
}

.account-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
}

@media (max-width: 800px) {
  .account-page__inner {
    width: min(100%, 520px);
  }

  .account-page__inner--dash {
    width: min(100%, 100%);
  }

  .account-dash {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .account-dash__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
  }

  .account-dash__group {
    margin: 0 !important;
  }

  .account-dash__group + .account-dash__group {
    margin-top: 0;
  }

  .account-card__profile {
    padding-right: 0;
    padding-top: 12px;
  }

  .account-auth--split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .account-auth--split .account-panel {
    display: none;
  }

  .account-auth--split .account-panel.is-active {
    display: block;
  }

  .account-panel__switch--mobile {
    display: block;
  }

  .account-form__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .account-card__profile {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .account-card__welcome {
    justify-content: center;
  }

  .account-card__meta > div {
    justify-content: center;
  }

  .account-card__exit {
    top: 12px;
    right: 14px;
  }
}

/* —— 商品评价 —— */
.product-info__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 0.875rem;
  color: var(--color-text, #222);
}

.product-info__rating-stars span {
  color: #d0d0d0;
  letter-spacing: 0.05em;
}

.product-info__rating-stars span.is-on {
  color: #111;
}

.product-info__rating-text {
  color: var(--color-text, #444);
}

.product-reviews {
  padding: 40px 0 24px;
  border-top: 1px solid #eee;
}

.product-reviews__inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.product-reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}

.product-reviews__title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-reviews__count {
  font-weight: 600;
  color: #666;
}

.product-reviews__summary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-reviews__avg {
  font-size: 1.5rem;
  font-weight: 700;
}

.product-reviews__star {
  color: #d0d0d0;
  font-size: 0.95rem;
}

.product-reviews__star.is-on {
  color: #111;
}

.product-reviews__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-reviews__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.product-reviews__media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f3f3f3;
}

.product-reviews__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-reviews__card-stars {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: inline-flex;
  gap: 1px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.75rem;
}

.product-reviews__card-stars--plain {
  position: static;
  transform: none;
  align-self: flex-start;
  background: #f5f5f5;
}

.product-reviews__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  color: #777;
}

.product-reviews__card-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.product-reviews__card-body {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #444;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 960px) {
  .product-reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .product-reviews__grid {
    grid-template-columns: 1fr;
  }
}

/* 滚动淡入 Fade */
.scroll-fade {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
  will-change: opacity, transform;
}

.scroll-fade.is-inview {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-fade {
    opacity: 1;
    transform: none;
    transition: none;
  }
}



/* —— 订单摘要折叠（移动端交互对齐 Shopify） —— */
.checkout__summary-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.checkout__summary-toggle:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
  border-radius: 6px;
}

.checkout__summary-toggle-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.checkout__summary-toggle-cart,
.checkout__summary-toggle-chevron {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkout__summary-toggle-cart {
  width: 20px;
  height: 20px;
}

.checkout__summary-toggle-chevron {
  width: 18px;
  height: 18px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.checkout__summary-toggle-text {
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}

.checkout__summary-toggle-total {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  flex: none;
  font-size: 1rem;
  font-weight: 600;
}

.checkout__summary-toggle-total em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-muted);
}

@media (max-width: 900px) {
  .checkout__summary {
    padding-top: 0;
    padding-bottom: 0;
  }

  .checkout__summary-brand {
    margin-bottom: 0;
    padding: 12px 0 14px;
  }

  .checkout__summary-toggle {
    display: flex;
    padding: 15px 0;
  }

  .checkout__summary.is-open .checkout__summary-toggle-chevron {
    transform: rotate(180deg);
  }

  .checkout__summary-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .checkout__summary.is-open .checkout__summary-panel {
    grid-template-rows: 1fr;
  }

  .checkout__summary-panel-inner {
    overflow: hidden;
  }

  .checkout__summary-panel-inner > .checkout__lines {
    padding-top: 6px;
  }

  .checkout__summary-panel-inner > .checkout__totals {
    padding-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .checkout__summary-toggle-chevron,
  .checkout__summary-panel {
    transition: none;
  }
}
