/* ============================================================
   AURELLE — design system
   Palette: aubergine (amethyst) ink, warm ivory, champagne gold,
   soft rose. Type: Fraunces (display) + Jost (body).
   Signature: the gem-facet diamond motif.
   ============================================================ */

:root {
  --ivory: #F7F2ED;
  --paper: #FFFDFB;
  --aubergine: #43293B;
  --aubergine-deep: #35202F;
  --gold: #A98A5B;
  --gold-soft: #CBB48A;
  --rose: #EBDCD8;
  --rose-deep: #D9B8B0;
  --muted: #8A7D76;
  --line: #E4DBD2;
  --danger: #A23B3B;
  --ok: #4C7A5C;
  --shadow: 0 10px 30px rgba(67, 41, 59, .08);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1240px;
}

* { box-sizing: border-box; }

/* hidden 属性优先：防止 img{display:block} / .btn{display:inline-block} 覆盖 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--aubergine);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 380;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--aubergine);
}

a { color: var(--aubergine); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------------- announcements & header ---------------- */

.announce {
  background: var(--aubergine);
  color: #F3E9E2;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: .6rem 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 242, 237, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand { justify-self: center; text-align: center; }
.brand a { display: inline-flex; flex-direction: column; align-items: center; gap: .15rem; }
.brand__mark { width: 22px; height: 22px; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.55rem;
  letter-spacing: .34em;
  text-indent: .34em;
  color: var(--aubergine);
  line-height: 1;
}
.brand__tag {
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav__link {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--aubergine);
  padding: .3rem 0;
  border-bottom: 1px solid transparent;
}
.nav__link:hover { color: var(--gold); border-bottom-color: var(--gold); }
.nav__menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }

/* ---------------- nav dropdown ---------------- */

.nav-dropdown { position: relative; display: inline-flex; align-items: center; }
.nav-dropdown__trigger { display: inline-flex; align-items: center; gap: .45rem; }
.nav-dropdown__arrow {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--aubergine);
  transition: transform .2s ease;
}
.nav-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown:hover .nav-dropdown__arrow { transform: rotate(180deg); border-top-color: var(--gold); }
.nav-dropdown__item {
  display: block;
  padding: .55rem 1.2rem;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aubergine);
  white-space: nowrap;
}
.nav-dropdown__item:hover { color: var(--gold); background: var(--ivory); }

.header-actions { display: flex; align-items: center; gap: 1.1rem; justify-self: end; }
.header-actions a { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.cart-count {
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  min-width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  padding: 0 .3rem;
}
.cart-count.bump {
  animation: cart-bump .45s ease;
}
@keyframes cart-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); }
  70% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

/* ---------------- motif: facet diamond ---------------- */

.facet {
  width: 10px; height: 10px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  display: inline-block;
}
.facet--fill { background: var(--gold); }
.divider {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin: 0 auto;
  color: var(--gold);
}
.divider::before, .divider::after {
  content: ''; height: 1px; width: 64px; background: var(--line);
}

/* ---------------- typography helpers ---------------- */

.eyebrow {
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}
.display {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.12;
}
.display em { font-style: italic; font-weight: 300; color: var(--gold); }
.lede { color: var(--muted); max-width: 56ch; font-weight: 300; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------------- sections ---------------- */

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--rose { background: var(--rose); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--aubergine); color: #F3E9E2; }
.section--dark h2, .section--dark h3 { color: #F3E9E2; }
.section--dark .lede, .section--dark .muted { color: #CDBBB4; }
.section__head { text-align: center; margin-bottom: 2.6rem; }

/* ---------------- hero slider ---------------- */

.hero-slider {
  position: relative;
  background: var(--rose);
  min-height: clamp(440px, 64vh, 620px);
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-slider__inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  height: 100%;
  min-height: clamp(440px, 64vh, 620px);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
}
.hero-slide__content {
  background: rgba(255, 253, 251, .93);
  backdrop-filter: blur(4px);
  max-width: 560px;
  padding: clamp(1.8rem, 4vw, 3rem);
  border: 1px solid rgba(169, 138, 91, .35);
}
.hero-slide__content .display { font-size: clamp(1.7rem, 3.8vw, 2.7rem); }
.hero-slider__nav {
  position: absolute;
  left: 0; right: 0; bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  z-index: 5;
}
.hero-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(67, 41, 59, .3);
  background: rgba(255, 253, 251, .85);
  color: var(--aubergine);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: all .2s ease;
}
.hero-arrow:hover { background: var(--aubergine); color: #fff; }
.hero-slider__dots { display: flex; gap: .5rem; }
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--aubergine);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all .2s ease;
}
.hero-dot.active { background: var(--aubergine); }

/* ---------------- trust bar ---------------- */

.trustbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.4rem var(--gutter);
}
.trustbar__item {
  display: flex;
  align-items: center;
  gap: .8rem;
  justify-content: center;
  text-align: left;
}
.trustbar__icon { font-size: 1.5rem; color: var(--gold); width: 2rem; text-align: center; display: inline-flex; align-items: center; justify-content: center; }
.trustbar__icon svg { vertical-align: middle; }
.trustbar__item strong { display: block; font-weight: 400; font-size: .9rem; letter-spacing: .04em; }
.trustbar__sub { font-size: .78rem; color: var(--muted); }

/* ---------------- promo band + countdown ---------------- */

.promo-band {
  background: var(--aubergine);
  padding: clamp(2.4rem, 5vw, 3.6rem) 0;
}
.promo-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.promo-countdown { display: flex; gap: .9rem; }
.promo-countdown__unit {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(243, 233, 226, .25);
  min-width: 78px;
  padding: .7rem .5rem;
  text-align: center;
}
.promo-countdown__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: #fff;
  line-height: 1.1;
}
.promo-countdown__label {
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---------------- collection split style: 左图右商品分栏 ---------------- */

.col-split { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); gap: 2rem; align-items: stretch; }
.col-split__media { position: relative; }
.col-split__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper);
}
.col-split__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.col-split__head .display { margin: 0; }
.col-split__desc { color: var(--muted); margin: .5rem 0 1rem; max-width: 56ch; }
.col-split__list { display: flex; flex-direction: column; gap: .9rem; }
.col-split__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: .8rem;
  transition: border-color .2s ease;
}
.col-split__item:hover { border-color: var(--gold); }
.col-split__item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--ivory);
}
.col-split__item-name {
  font-family: var(--font-display);
  font-size: .98rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.col-split__item-price { font-weight: 400; letter-spacing: .04em; white-space: nowrap; }
.col-split__item-compare {
  color: var(--muted);
  text-decoration: line-through;
  font-weight: 300;
  margin-right: .5rem;
  font-size: .85em;
}
@media (max-width: 900px) {
  .col-split { grid-template-columns: 1fr; }
  .col-split__media { position: static; }
  .col-split__img { height: auto; aspect-ratio: 4 / 3; }
}

/* ---------------- review cards ---------------- */

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.review-card__title { font-family: var(--font-display); font-size: 1.05rem; }
.review-card__body { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.review-card__meta { font-size: .82rem; display: flex; flex-direction: column; }

/* section head with side action */
.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: left;
  margin-bottom: 2.2rem;
}
.section__head--row .eyebrow { margin-bottom: .5rem; }
.section__head--row .display { margin-bottom: 0; }

/* ---------------- category tiles ---------------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.4rem;
}
.cat-tile { position: relative; text-align: center; display: block; }
.cat-tile__img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  transition: transform .45s ease;
}
.cat-tile:hover .cat-tile__img { transform: scale(1.04); }
.cat-tile__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  margin-top: .9rem;
  letter-spacing: .04em;
}
.cat-tile__count { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ---------------- product cards ---------------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.8rem 1.3rem;
}
.product-card { position: relative; display: flex; flex-direction: column; }
.product-card__media { position: relative; overflow: hidden; background: var(--paper); }
.product-card__img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  transition: transform .5s ease;
}
.product-card:hover .product-card__img { transform: scale(1.05); }
.product-card__body { padding-top: .9rem; text-align: center; }
.product-card__name {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .98rem;
  line-height: 1.32;
  margin: 0 0 .35rem;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__body a:hover .product-card__name {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold);
  color: var(--gold);
}
.product-card__price { color: var(--aubergine); font-weight: 400; letter-spacing: .04em; font-size: 1.02rem; }
.product-card__compare { color: var(--muted); text-decoration: line-through; margin-left: .5rem; font-weight: 300; }
.product-card__rating { font-size: .82rem; color: var(--gold); letter-spacing: .08em; margin-bottom: .15rem; }

.badge {
  position: absolute;
  top: .8rem; left: .8rem;
  z-index: 2;
  background: var(--aubergine);
  color: #F3E9E2;
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .3rem .7rem;
}
.badge--sale { background: var(--gold); }
.badge--soldout { background: var(--muted); }

.quick-add {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  transform: translateY(102%);
  transition: transform .3s ease;
  background: rgba(67, 41, 59, .92);
  color: #fff;
  border: none;
  width: 100%;
  padding: .85rem;
  font-family: var(--font-body);
  font-size: .76rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
}
/* 显示条件：悬停（JS quick-open class）或按钮自身获焦（键盘 Tab）。
   不用 :focus-within——点击商品链接后焦点残留会让按钮常显不消。 */
.product-card.quick-open .quick-add, .quick-add:focus { transform: translateY(0); }

/* 左图右商品分栏：左图悬停也显示 Add to Cart */
.split-media-card { position: relative; overflow: hidden; height: 100%; }
.split-media-card.quick-open .quick-add { transform: translateY(0); }
/* 左图按钮：与图片严格同宽（图片有 1px 边框，按钮左右内收对齐） */
.split-media-card .quick-add {
  left: 1px;
  right: 1px;
  width: auto;
  box-sizing: border-box;
  padding: calc(.85rem + 2.5px) 1rem;
}
.split-media-card .col-split__img { display: block; box-sizing: border-box; }
.quick-add:hover { background: var(--aubergine-deep); color: #fff; }

/* ---------------- buttons & forms ---------------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .95rem 2.2rem;
  border: 1px solid var(--aubergine);
  cursor: pointer;
  text-align: center;
  transition: all .25s ease;
  background: transparent;
  color: var(--aubergine);
}
.btn:hover { background: var(--aubergine); color: #F3E9E2; }
.btn--solid { background: var(--aubergine); color: #F3E9E2; }
.btn--solid:hover { background: var(--aubergine-deep); border-color: var(--aubergine-deep); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn--gold:hover { background: #96784C; border-color: #96784C; color: #fff; }
.btn--light { border-color: rgba(243, 233, 226, .6); color: #F3E9E2; background: transparent; }
.btn--light:hover { background: #F3E9E2; color: var(--aubergine); }
.btn--sm { padding: .55rem 1.2rem; font-size: .72rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}
.field label .req { color: var(--danger); }
.input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .95rem;
  color: var(--aubergine);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: .7rem .9rem;
  transition: border-color .2s ease;
}
.input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }

/* ---------------- flash messages ---------------- */

.flash-stack { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.flash {
  margin: .8rem 0;
  padding: .8rem 1.1rem;
  border: 1px solid;
  font-size: .9rem;
}
.flash--success { border-color: var(--ok); color: var(--ok); background: rgba(76, 122, 92, .08); }
.flash--error { border-color: var(--danger); color: var(--danger); background: rgba(162, 59, 59, .07); }

/* ---------------- band / story ---------------- */

.band { text-align: center; padding: clamp(3.5rem, 8vw, 6rem) var(--gutter); }
.band blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.4;
  max-width: 30ch;
  margin: 0 auto 1.6rem;
}

/* ---------------- newsletter & footer ---------------- */

.newsletter { text-align: center; }
.newsletter__form {
  display: flex;
  gap: .6rem;
  max-width: 460px;
  margin: 1.4rem auto 0;
}
.newsletter__form .input { flex: 1; }

.site-footer { background: var(--aubergine-deep); color: #CDBBB4; padding: 3.5rem 0 2rem; }
.site-footer a { color: #E8D9D2; }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; font-size: .9rem; }
.site-footer__bottom {
  border-top: 1px solid rgba(232, 217, 210, .15);
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .78rem;
  letter-spacing: .06em;
}

/* ---------------- collection / list page ---------------- */

.page-head { padding: 2.8rem 0 1.4rem; text-align: center; }
.page-head .display { font-size: clamp(1.9rem, 4vw, 2.8rem); }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: .8rem 0;
  margin: 1.6rem 0 2.4rem;
}
.toolbar__count { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.toolbar select {
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--aubergine);
  padding: .5rem .8rem;
}

/* ---------------- custom sort dropdown ---------------- */

.sort-dropdown { position: relative; display: inline-block; }
.sort-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--aubergine);
  padding: .55rem 1rem;
  cursor: pointer;
  transition: border-color .2s ease;
  min-width: 210px;
  justify-content: space-between;
}
.sort-dropdown__trigger:hover { border-color: var(--gold); }
.sort-dropdown__label { white-space: nowrap; }
.sort-dropdown__arrow {
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--aubergine);
  transition: transform .2s ease;
}
.sort-dropdown.open .sort-dropdown__trigger { border-color: var(--gold); }
.sort-dropdown.open .sort-dropdown__arrow { transform: rotate(180deg); }
.sort-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  margin: 0;
  padding: .4rem 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.sort-dropdown.open .sort-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.sort-dropdown__option {
  padding: .55rem 1rem;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--aubergine);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.sort-dropdown__option:hover { background: var(--ivory); color: var(--gold); }
.sort-dropdown__option.active { color: var(--gold); }
.sort-dropdown__option.active::before { content: '✓ '; }

.pagination { display: flex; justify-content: center; gap: .4rem; margin: 3rem 0 1rem; }
.pagination a, .pagination span {
  min-width: 2.4rem;
  text-align: center;
  padding: .5rem .8rem;
  border: 1px solid var(--line);
  font-size: .85rem;
}
.pagination .current { background: var(--aubergine); color: #F3E9E2; border-color: var(--aubergine); }
.pagination a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------------- product detail ---------------- */

.breadcrumbs { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 1.4rem 0 .6rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: 2rem 0 4rem;
}
.gallery { position: sticky; top: 110px; align-self: start; }
.gallery__main { aspect-ratio: 1; object-fit: cover; width: 100%; background: var(--paper); border: 1px solid var(--line); }
.gallery__thumbs { display: flex; gap: .7rem; margin-top: .7rem; }
.gallery__thumb {
  width: 72px; height: 72px;
  object-fit: cover;
  cursor: pointer;
  border: 1px solid var(--line);
  padding: 2px;
  background: var(--paper);
}
.gallery__thumb.active { border-color: var(--gold); }

.product-info__name { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 400; margin-bottom: .3rem; }
.product-info__sku { font-size: .74rem; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.product-price { margin: 1.1rem 0; display: flex; align-items: baseline; gap: .7rem; }
.product-price__now { font-size: 1.4rem; font-weight: 400; }
.product-price__compare { color: var(--muted); text-decoration: line-through; }
.product-price__save { color: var(--danger); font-size: .8rem; letter-spacing: .08em; }

.option-group { margin: 1.3rem 0; }
.option-group__label {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  margin-bottom: .55rem;
}
.option-group__choices { display: flex; flex-wrap: wrap; gap: .55rem; }
.option-chip {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: .55rem 1.1rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .85rem;
  color: var(--aubergine);
  transition: all .2s ease;
}
.option-chip:hover { border-color: var(--gold); }
.option-chip.selected { border-color: var(--aubergine); background: var(--aubergine); color: #F3E9E2; }
.option-chip[disabled] { opacity: .4; cursor: not-allowed; text-decoration: line-through; }

.qty-row {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 1.5rem 0;
  max-width: 320px;
}

/* ---------------- quantity picker (− 数字 +) ---------------- */

.qty-picker {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 170px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.qty-btn {
  width: 46px;
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: var(--aubergine);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.qty-btn:hover { background: var(--rose); }
.qty-input {
  flex: 1;
  min-width: 0;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: transparent;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--aubergine);
  padding: .75rem .3rem;
}
.qty-input:focus { outline: none; }
/* 去掉原生上下箭头 */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.qty-row input { width: 72px; }
.stock-note { font-size: .8rem; letter-spacing: .08em; }
.stock-note--ok { color: var(--ok); }
.stock-note--low { color: var(--gold); }
.stock-note--out { color: var(--danger); }

.accordions { margin-top: 2.2rem; border-top: 1px solid var(--line); }
.accordions details { border-bottom: 1px solid var(--line); }
.accordions summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem .2rem;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.accordions summary::-webkit-details-marker { display: none; }
.accordions summary::after { content: '+'; font-size: 1.2rem; color: var(--gold); }
.accordions details[open] summary::after { content: '–'; }
.accordions .acc-body { padding: 0 .2rem 1.2rem; color: var(--muted); font-size: .92rem; }

/* ---------------- reviews ---------------- */

.review { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.review__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.review__author { font-weight: 400; }
.review__date { font-size: .78rem; color: var(--muted); }
.review__title { font-family: var(--font-display); margin: .2rem 0; font-size: 1.02rem; }
.review__body { color: var(--muted); font-size: .92rem; margin: 0; }
.stars { color: var(--gold); letter-spacing: .12em; font-size: .9rem; }
.stars .off { color: var(--line); }

/* ---------------- cart ---------------- */

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); text-align: left; font-weight: 400;
  padding: .7rem .6rem; border-bottom: 1px solid var(--line);
}
.cart-table td { padding: 1.3rem .6rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item { display: flex; align-items: center; gap: 1.1rem; }
.cart-item__img { width: 84px; height: 84px; object-fit: cover; background: var(--paper); border: 1px solid var(--line); }
.cart-item__name { font-family: var(--font-display); font-size: 1rem; }
.cart-item__variant { font-size: .8rem; color: var(--muted); }
.cart-qty input { width: 60px; }

.cart-summary {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.8rem;
}
.cart-summary__row {
  display: flex; justify-content: space-between;
  padding: .5rem 0;
  font-size: .92rem;
}
.cart-summary__row--total {
  border-top: 1px solid var(--line);
  margin-top: .6rem; padding-top: 1rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.free-ship-note {
  font-size: .8rem; letter-spacing: .06em; color: var(--muted);
  margin: .4rem 0 1.2rem;
}
.free-ship-note strong { color: var(--gold); }

/* ---------------- checkout ---------------- */

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: 2.5rem 0 4rem;
}
.checkout-section {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.8rem;
  margin-bottom: 1.4rem;
}
.checkout-section h3 {
  font-family: var(--font-body);
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.2rem;
}
.order-summary { position: sticky; top: 110px; align-self: start; }
.order-summary__item {
  display: flex; align-items: center; gap: .9rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
}
.order-summary__item img { width: 54px; height: 54px; object-fit: cover; border: 1px solid var(--line); }
.pay-methods { display: grid; gap: .8rem; }
.pay-method {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.pay-method:hover { border-color: var(--gold); }
.pay-method.selected { border-color: var(--aubergine); box-shadow: var(--shadow); }
.pay-method__name { font-weight: 400; letter-spacing: .08em; }
.pay-method__desc { font-size: .8rem; color: var(--muted); display: block; }

/* PayPal 按钮：品牌黄底，纯文字 logo，宽度约 2/5 */
.pay-method--wrap { width: 400px; max-width: 100%; justify-self: center; }
.pay-method--paypal {
  background: #FFC439;
  border-color: #FFC439;
  justify-content: center;
  padding: 0 1.3rem;
  width: 100%;
  height: 60px;
}
.pay-method--paypal:hover { border-color: #F2B325; background: #F2B325; }
.pay-method--full { width: 100%; }
.checkout-btns {
  display: grid;
  grid-template-columns: 1fr;
  gap: .8rem;
  margin-top: 1.2rem;
}
.checkout-btns .pay-method--paypal { margin: 0; height: auto; min-height: 52px; }
.pay-method__paypal-label {
  font-size: 1rem;
  color: #003087;
  font-weight: 500;
  margin-right: .15rem;
}
.paypal-logo-img { height: 22px; width: auto; display: block; flex-shrink: 0; }
.pay-method__paypal-label { flex-shrink: 0; white-space: nowrap; }

/* 支持的支付方式卡 logo */
.pay-method__cards-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  flex-wrap: wrap;
  padding-top: .2rem;
}
.pay-method__cards-note {
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
}
.card-logo {
  width: auto;
  height: 26px;
  display: block;
}

/* ---------------- order success / track ---------------- */

.status-steps { display: flex; justify-content: center; margin: 2rem 0; }
.status-step {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
/* 连线：从本步圆点右缘到下步圆点左缘，精确居中 */
.status-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 14px);
  width: calc(100% - 28px);
  height: 1px;
  background: var(--line);
}
.status-step__dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem;
  z-index: 1;
}
.status-step.active { color: var(--aubergine); }
.status-step.active .status-step__dot { background: var(--aubergine); border-color: var(--aubergine); color: #fff; }
.status-step.done .status-step__dot { background: var(--ok); border-color: var(--ok); color: #fff; }

.order-meta { display: grid; grid-template-columns: 1fr; gap: 1.4rem; }
.order-meta__block + .order-meta__block { margin-top: 0; }
.order-meta__block { background: var(--paper); border: 1px solid var(--line); padding: 1.4rem; }
.order-meta__block h4 {
  font-family: var(--font-body);
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .8rem;
}
.order-meta__block p { margin: .2rem 0; font-size: .9rem; }

/* ---------------- ship-to address block ---------------- */

.ship-to {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.1rem 1.3rem;
  background: var(--ivory);
  border-left: 3px solid var(--gold);
}
.ship-to__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: .02em;
}
.ship-to__addr,
.ship-to__city {
  font-size: .92rem;
  color: var(--aubergine);
  line-height: 1.5;
}
.ship-to__country {
  display: inline-block;
  align-self: flex-start;
  margin-top: .3rem;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  padding: .25rem .7rem;
}

/* ---------------- static pages ---------------- */

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose p { color: var(--aubergine); }
.prose--center { margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between;
  padding: 1.2rem .2rem;
  font-family: var(--font-display); font-size: 1.08rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--gold); font-size: 1.3rem; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; }

/* ---------------- 404 ---------------- */
.error-page { text-align: center; padding: 6rem 0; }
.error-page .display { font-size: clamp(3rem, 8vw, 5.5rem); }
.error-page .facet { margin: 2rem auto; }

/* ---------------- responsive ---------------- */

@media (max-width: 900px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: start; order: 2; }
  .header-actions { order: 3; }
  .nav { order: 1; }
  .nav__menu-toggle { display: block; }
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 1rem var(--gutter) 1.4rem;
    gap: .9rem;
  }
  .nav__links.open { display: flex; }
  /* 移动端保持原样：品类全部平铺展开、左对齐、与 Shop All 同一背景 */
  .nav-dropdown { display: flex; flex-direction: column; align-items: stretch; gap: .9rem; }
  .nav-dropdown__arrow { display: none; }
  .nav-dropdown__menu {
    position: static;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    min-width: 0;
  }
  .nav-dropdown__item { padding: 0; }
  .nav-dropdown__item:hover,
  .nav-dropdown__item:active {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  .nav-dropdown__item:active { background: rgba(169, 138, 91, .12); }
  .nav__link:active { background: rgba(169, 138, 91, .12); }
  .product-layout, .checkout-layout { grid-template-columns: 1fr; }
  .gallery, .order-summary { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .form-row, .form-row--3 { grid-template-columns: 1fr; }
  .order-meta { grid-template-columns: 1fr; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .cart-table td { border: none; padding: .4rem 0; }
  .trustbar { grid-template-columns: 1fr 1fr; }
  .trustbar__item { justify-content: flex-start; }
  .review-grid { grid-template-columns: 1fr; }
  .promo-band__inner { justify-content: center; text-align: center; }
  .promo-countdown { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
