/* ============================================
   ARELVIENNE — Premium Wig Store
   Aesthetic: Editorial luxury, warm minimalism
============================================ */

:root {
  --cream: #f5f0e8;
  --ivory: #faf6ef;
  --bone: #ede5d6;
  --ink: #1a1612;
  --soil: #3d2f24;
  --rose: #b08968;
  --rose-deep: #8a6a4f;
  --gold: #c9a961;
  --shadow: rgba(26, 22, 18, 0.08);

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Outfit', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ============ 公告条 ============ */
.announcement {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  padding: 10px 16px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 300;
}

/* ============ 导航 ============ */
.header {
  background: var(--ivory);
  border-bottom: 1px solid var(--bone);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 32px;
  line-height: 1;
  color: var(--rose-deep);
  font-weight: 500;
}

.logo-text {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.3em;
  font-weight: 500;
}

.nav-links {
  display: flex;
  gap: 44px;
  list-style: none;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover { color: var(--rose-deep); }

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--rose-deep);
  transition: width 0.3s;
}

.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.cart-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  color: var(--ink);
  padding: 8px;
  display: flex;
  align-items: center;
  transition: transform 0.2s;
}

.cart-btn:hover { transform: scale(1.05); }

.cart-count {
  position: absolute;
  top: -2px; right: -2px;
  background: var(--rose-deep);
  color: var(--ivory);
  font-size: 10px;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
}

.paypal-cart-nav {
  width: 126px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.paypal-cart-nav paypal-cart-button {
  width: 100%;
}

/* ============ 页面切换 ============ */
.page { display: none; animation: fadeIn 0.5s ease; }
.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream) 0%, var(--bone) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 25% 50%, rgba(176,137,104,0.15) 0%, transparent 50%),
    radial-gradient(circle at 75% 80%, rgba(201,169,97,0.1) 0%, transparent 50%);
}

.hero-bg::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 48%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1522337360788-8b13dee7a37e?w=900&q=80');
  background-size: cover;
  background-position: center top;
  opacity: 0.8;
  filter: sepia(0.08) contrast(1.05);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.7) 25%, black 55%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.7) 25%, black 55%);
}

.hero-content {
  position: relative;
  max-width: 720px;
  padding: 80px 32px;
  z-index: 2;
}

.hero-eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--rose-deep);
  margin-bottom: 24px;
  font-size: 16px;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 116px);
  line-height: 0.95;
  font-weight: 400;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--rose-deep);
  font-weight: 300;
}

.hero-sub {
  font-size: 17px;
  color: var(--soil);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-decor {
  position: absolute;
  bottom: 32px; left: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
}

.decor-line {
  width: 60px;
  height: 1px;
  background: var(--soil);
}

.decor-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--soil);
}

/* ============ 按钮 ============ */
.btn-primary {
  background: var(--ink);
  color: var(--ivory);
  border: none;
  padding: 18px 36px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 400;
}

.btn-primary:hover {
  background: var(--rose-deep);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 16px 36px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--ink);
  color: var(--ivory);
}

/* ============ 分区头 ============ */
.eyebrow {
  font-family: var(--serif);
  font-style: italic;
  color: var(--rose-deep);
  font-size: 16px;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.section-head {
  text-align: center;
  margin-bottom: 64px;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ============ 特点区 ============ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
  padding: 100px 32px;
  border-bottom: 1px solid var(--bone);
}

.feature-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 36px;
  color: var(--rose);
  margin-bottom: 16px;
  font-weight: 400;
}

.feature h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 12px;
}

.feature p {
  color: var(--soil);
  line-height: 1.7;
}

/* ============ 筛选栏 ============ */
.shop-filters {
  padding: 40px 32px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 480px;
}

.search-wrap svg {
  position: absolute;
  left: 14px;
  color: var(--soil);
  pointer-events: none;
  flex-shrink: 0;
}

.search-wrap input {
  width: 100%;
  padding: 12px 40px 12px 40px;
  background: var(--cream);
  border: 1px solid var(--bone);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}

.search-wrap input::placeholder { color: rgba(61,47,36,0.45); }
.search-wrap input:focus { border-color: var(--rose-deep); }

.search-clear {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--soil);
  font-size: 13px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  opacity: 0.6;
}

.search-clear:hover { opacity: 1; }

.filter-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--bone);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soil);
  white-space: nowrap;
  font-weight: 500;
}

.filter-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 7px 16px;
  background: transparent;
  border: 1px solid var(--bone);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-btn:hover { border-color: var(--rose-deep); color: var(--rose-deep); }

.filter-btn.active {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 80px 24px;
  color: var(--soil);
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
}

/* ============ 商品 ============ */
.featured {
  padding: 100px 32px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.product-card {
  cursor: pointer;
}

.product-card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.product-image {
  aspect-ratio: 4/5;
  background: var(--bone);
  overflow: hidden;
  position: relative;
}

.product-image-primary,
.product-image-secondary {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.product-image-secondary { opacity: 0; }

.product-card:hover .product-image-primary { opacity: 0; }
.product-card:hover .product-image-secondary { opacity: 1; }

.product-info {
  padding: 12px 0 16px;
}

.product-tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--ivory);
  color: var(--ink);
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 500;
}

.product-name {
  font-family: var(--serif);
  font-size: 16px;
  margin-bottom: 4px;
  font-weight: 400;
}

.product-meta {
  color: var(--rose-deep);
  font-size: 13px;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.product-price {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

.product-price .old {
  color: var(--soil);
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 400;
  opacity: 0.6;
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--rose-deep);
  font-size: 13px;
  font-weight: 500;
  text-underline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 3px;
}

/* ============ 商品详情 ============ */
.product-detail {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 40px;
  padding: 60px 32px 0;
  align-items: start;
}

/* ============ 轮播 ============ */
.carousel {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--bone);
  overflow: hidden;
  user-select: none;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.42s cubic-bezier(.7,0,.3,1);
}

.carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(250,246,239,0.88);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.carousel-btn:hover {
  background: var(--ivory);
  transform: translateY(-50%) scale(1.08);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.carousel-dot.active {
  background: var(--ivory);
  transform: scale(1.3);
}

.detail-info {
  padding-top: 20px;
  position: static;
  align-self: start;
}

.breadcrumb {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--soil);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--soil);
  text-decoration: none;
}

.detail-info h1 {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 16px;
}

.detail-price {
  font-size: 22px;
  font-family: var(--serif);
  margin-bottom: 32px;
  color: var(--rose-deep);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.detail-desc {
  color: var(--soil);
  line-height: 1.8;
  margin-bottom: 32px;
  font-size: 15px;
}

.detail-options {
  margin-bottom: 32px;
}

.detail-options label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--soil);
}

.option-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.option-btn {
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--bone);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  transition: all 0.2s;
  color: var(--ink);
}

.option-btn:hover { border-color: var(--ink); }

.option-btn.active {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.detail-features {
  list-style: none;
  margin-bottom: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--bone);
}

.detail-features li {
  padding: 10px 0;
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: var(--soil);
}

.detail-features li::before {
  content: '✦';
  color: var(--rose);
}

.btn-add {
  width: 100%;
  background: var(--ink);
  color: var(--ivory);
  border: none;
  padding: 20px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-add:hover { background: var(--rose-deep); }

.btn-add:disabled {
  background: var(--bone);
  color: var(--soil);
  cursor: not-allowed;
  opacity: 0.75;
}

.btn-add:disabled:hover {
  background: var(--bone);
  transform: none;
}

.paypal-purchase {
  padding: 28px;
  border: 1px solid var(--bone);
  background: var(--cream);
}

.paypal-purchase-head {
  margin-bottom: 22px;
}

.paypal-purchase-head .eyebrow {
  margin-bottom: 8px;
}

.paypal-purchase-head h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}

.paypal-purchase-head > p:last-child,
.paypal-shipping-note {
  color: var(--soil);
  font-size: 13px;
  line-height: 1.6;
}

.paypal-product-option + .paypal-product-option {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--bone);
}

.paypal-option-label {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.paypal-product-option paypal-add-to-cart-button {
  display: block;
  width: 100%;
}

.paypal-shipping-note {
  margin-top: 18px;
}

.paypal-load-error {
  padding: 16px;
  border: 1px solid var(--rose);
  color: var(--soil);
  font-size: 13px;
  line-height: 1.6;
}

.paypal-load-error a {
  color: var(--rose-deep);
}

.detail-price-old {
  font-family: var(--serif);
  font-size: 18px;
  text-decoration: line-through;
  opacity: 0.45;
}

/* ============ 客户评价 ============ */
.testimonial {
  background: var(--cream);
  padding: 120px 32px;
  text-align: center;
  border-top: 1px solid var(--bone);
  border-bottom: 1px solid var(--bone);
}

.quote-mark {
  font-family: var(--serif);
  font-size: 120px;
  line-height: 0.5;
  color: var(--rose);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto 32px;
  font-weight: 400;
  color: var(--ink);
}

.testimonial cite {
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--soil);
  font-style: normal;
}

/* ============ 普通页头 ============ */
.page-header {
  background: var(--cream);
  padding: 100px 32px 60px;
  text-align: center;
  border-bottom: 1px solid var(--bone);
}

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.page-sub {
  color: var(--soil);
  font-size: 16px;
  max-width: 520px;
  margin: 16px auto 0;
}

/* ============ About ============ */
.about-content {
  padding: 80px 32px 120px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.about-grid p {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  margin-bottom: 24px;
  color: var(--soil);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--cream);
  padding: 48px;
}

.about-stats div {
  text-align: center;
}

.about-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--rose-deep);
  margin-bottom: 4px;
}

.about-stats span {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--soil);
}

/* ============ 联系页 ============ */
.contact-info p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.7;
  margin-bottom: 32px;
  color: var(--soil);
}

.contact-info strong {
  color: var(--rose-deep);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--sans);
}

/* ============ 购物车 ============ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,22,18,0.4);
  backdrop-filter: blur(4px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: var(--ivory);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.7,0,.3,1);
  display: flex;
  flex-direction: column;
}

.cart-drawer.open { transform: translateX(0); }

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--bone);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.cart-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
  padding: 8px;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--bone);
}

.cart-item-img {
  width: 80px;
  height: 100px;
  background: var(--bone);
  overflow: hidden;
}

.cart-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.cart-item-info h4 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}

.cart-item-meta {
  font-size: 12px;
  color: var(--soil);
  margin-bottom: 8px;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.cart-qty button {
  background: transparent;
  border: 1px solid var(--bone);
  width: 28px; height: 28px;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.cart-item-price {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--rose-deep);
  font-weight: 500;
}

.cart-remove {
  background: none;
  border: none;
  font-size: 11px;
  color: var(--soil);
  cursor: pointer;
  text-decoration: underline;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cart-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--soil);
}

.cart-empty p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  margin-bottom: 24px;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--bone);
  background: var(--cream);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.cart-note {
  font-size: 12px;
  color: var(--soil);
  margin-bottom: 16px;
  text-align: center;
}

.btn-checkout {
  width: 100%;
  background: var(--ink);
  color: var(--ivory);
  border: none;
  padding: 18px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 8px;
  transition: background 0.3s;
}

.btn-checkout:hover { background: var(--rose-deep); }

/* ============ 结账弹窗 ============ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,22,18,0.55);
  backdrop-filter: blur(4px);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: min(680px, 96vw);
  max-height: 90vh;
  background: var(--ivory);
  z-index: 301;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(.7,0,.3,1);
}

.modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--bone);
  flex-shrink: 0;
}

.modal-header h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
}

.modal-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
  padding: 6px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.modal-close:hover { opacity: 1; }

.modal-body {
  overflow-y: auto;
  padding: 24px 28px 32px;
  flex: 1;
}

/* 订单摘要 */
.co-summary-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soil);
  margin-bottom: 14px;
  font-weight: 500;
}

.co-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--bone);
}

.co-item img {
  width: 52px;
  height: 64px;
  object-fit: cover;
  background: var(--bone);
}

.co-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.co-item-info strong { font-size: 14px; font-family: var(--serif); font-weight: 500; }
.co-item-info span   { font-size: 12px; color: var(--soil); }
.co-item-price       { font-family: var(--serif); font-size: 15px; color: var(--rose-deep); }

.co-totals {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  padding: 14px 0 20px;
  font-size: 14px;
  color: var(--soil);
}

.co-totals strong { color: var(--ink); font-size: 16px; font-family: var(--serif); }
.co-totals em     { font-style: normal; color: var(--rose-deep); }

/* 表单 */
.co-section-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--soil);
  margin: 4px 0 16px;
  font-weight: 500;
}

.co-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.co-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.co-field label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--soil);
}

.co-field label span { color: var(--rose-deep); }
.co-field label em   { font-style: normal; text-transform: none; letter-spacing: 0; opacity: 0.7; }

.co-field-hint {
  font-size: 11px;
  color: var(--soil);
  opacity: 0.7;
  margin-top: -2px;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.co-field input,
.co-field textarea {
  padding: 11px 14px;
  background: var(--cream);
  border: 1px solid var(--bone);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.co-field input:focus,
.co-field textarea:focus { border-color: var(--rose-deep); }

.co-field input::placeholder,
.co-field textarea::placeholder { color: rgba(61,47,36,0.38); }

.co-legal {
  font-size: 12px;
  color: var(--soil);
  margin-top: 10px;
  line-height: 1.6;
  opacity: 0.8;
}

.co-legal a { color: var(--rose-deep); }

/* 成功状态 */
.order-success {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  gap: 14px;
}

.success-icon {
  font-size: 36px;
  color: var(--rose);
  font-family: var(--serif);
}

.order-success h3 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
}

.order-success p {
  color: var(--soil);
  line-height: 1.7;
  max-width: 400px;
}

.success-orderid {
  font-size: 13px;
  letter-spacing: 0.08em;
  background: var(--cream);
  padding: 8px 20px;
  border: 1px solid var(--bone);
}

/* 错误状态 */
.order-error {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
  gap: 14px;
  border: 1px solid #e8c4c4;
  background: #fdf6f6;
  margin-top: 16px;
}

.error-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-error h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
}

.order-error p {
  font-size: 14px;
  color: var(--soil);
  line-height: 1.7;
  max-width: 380px;
}

.error-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  .modal { width: 100vw; max-height: 100dvh; top: auto; bottom: 0; left: 0; right: 0; transform: translateY(100%); border-radius: 0; }
  .modal.open { transform: translateY(0); }
  .co-row { grid-template-columns: 1fr; gap: 0; }
  .modal-body { padding: 20px 20px 40px; }
}

/* ============ 页脚 ============ */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 0;
  margin-top: 0;
}

.footer .logo-text { color: var(--cream); }
.footer .logo-mark { color: var(--gold); }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 60px;
  padding: 0 32px 60px;
}

.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  margin-top: 16px;
  color: rgba(245,240,232,0.7);
}

.footer h4 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--gold);
  font-weight: 500;
}

.footer a {
  display: block;
  color: rgba(245,240,232,0.7);
  text-decoration: none;
  padding: 6px 0;
  font-size: 14px;
  transition: color 0.2s;
}

.footer a:hover { color: var(--cream); }

.footer p {
  color: rgba(245,240,232,0.7);
  font-size: 14px;
  margin-bottom: 12px;
}

.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.newsletter input {
  flex: 1;
  padding: 12px;
  background: rgba(245,240,232,0.1);
  border: 1px solid rgba(245,240,232,0.2);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
}

.newsletter input::placeholder { color: rgba(245,240,232,0.4); }

.newsletter button {
  padding: 12px 20px;
  background: var(--gold);
  color: var(--ink);
  border: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(245,240,232,0.1);
  padding: 24px 32px;
  text-align: center;
  font-size: 12px;
  color: rgba(245,240,232,0.5);
}

/* ============ 合规政策页 ============ */
.policy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 32px 120px;
}

.policy-intro {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.75;
  color: var(--soil);
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--bone);
}

.policy-content h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin: 40px 0 16px;
  padding-top: 8px;
}

.policy-content p,
.policy-content li {
  color: var(--soil);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}

.policy-content ul,
.policy-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.policy-content li {
  margin-bottom: 8px;
}

.policy-content a {
  color: var(--rose-deep);
  text-decoration: underline;
}

.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.policy-table th {
  background: var(--cream);
  color: var(--ink);
  font-weight: 500;
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--bone);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.policy-table td {
  padding: 12px 16px;
  border: 1px solid var(--bone);
  color: var(--soil);
}

/* ============ About 署名 ============ */
.about-signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--rose-deep);
  margin-top: 8px;
}

/* ============ 商品详情评分 ============ */
.detail-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-rating .stars {
  color: var(--gold);
  font-size: 19px;
  letter-spacing: 2px;
  line-height: 1;
}

.detail-rating .rating-text {
  font-size: 13px;
  color: var(--soil);
  letter-spacing: 0.02em;
}

/* ============ 评价卡片区 ============ */
.reviews {
  padding: 100px 32px;
  border-top: 1px solid var(--bone);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.review-card {
  background: var(--cream);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid var(--bone);
}

.review-stars {
  color: var(--gold);
  font-size: 18px;
  letter-spacing: 3px;
  line-height: 1;
}

.review-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  flex: 1;
}

.review-author {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 4px;
  border-top: 1px solid var(--bone);
}

.review-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.05em;
}

.review-badge {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

/* ============ 信任徽章 ============ */
.trust-badges {
  background: var(--ivory);
  padding: 72px 32px 80px;
  border-top: 1px solid var(--bone);
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 920px;
  margin: 0 auto;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.trust-badge svg {
  color: var(--rose-deep);
  opacity: 0.75;
  flex-shrink: 0;
}

.trust-badge span {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--soil);
  line-height: 1.5;
  font-weight: 400;
}

/* ============ 响应式 ============ */
@media (min-width: 769px) and (max-width: 1199px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .detail-info { position: static; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav { padding: 16px 20px; }
  .logo-text { font-size: 17px; letter-spacing: 0.22em; }
  .paypal-cart-nav { width: 112px; }
  .mobile-menu-btn { display: flex; }
  .mobile-nav.open {
    display: flex;
    flex-direction: column;
    padding: 10px 20px 22px;
    border-top: 1px solid var(--bone);
    background: var(--ivory);
  }
  .mobile-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--bone);
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
  .mobile-nav a:last-child { border-bottom: 0; }
  body.mobile-menu-open { overflow: hidden; }
  .shop-filters { padding: 24px 20px 0; gap: 14px; }
  .filter-row { gap: 14px; }
  .filter-group { gap: 8px; }
  .search-wrap { max-width: 100%; }
  .hero-content { padding: 60px 24px; }
  .hero-bg::after { display: none; }
  .product-detail { grid-template-columns: 1fr; gap: 40px; padding: 32px 24px 0; }
  .detail-info { position: static; }
  .paypal-purchase { padding: 20px 16px; }
  .carousel-btn { width: 36px; height: 36px; font-size: 22px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
  .container { padding: 0 20px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .trust-badges-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}

/* =========================================================================
   PRODUCT DETAIL — Stacked Image Column
   ========================================================================= */

.product-detail-images {
  display: flex;
  flex-direction: column;
}

.stacked-image {
  width: 100%;
  aspect-ratio: 4/5;
}

.stacked-image + .stacked-image {
  border-top: 1px solid var(--bone);
}

.stacked-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================================
   PRODUCT DETAIL GALLERY — Full-width section below 2-col grid
   ========================================================================= */

#product-detail-gallery {
  width: 100%;
  display: flex;
  flex-direction: column;
}

#product-detail-gallery:empty { display: none; }

#product-detail-gallery img {
  width: 100%;
  display: block;
}
