/* 产品详情页 - 参考 Lapicida product page */
.product-page {
  padding: calc(var(--space-lg) + 3.5rem) var(--space-lg) var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
}

.product-breadcrumb {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.product-breadcrumb a:hover {
  color: var(--color-accent);
}

.product-breadcrumb-sep {
  margin: 0 0.35rem;
}

.product-breadcrumb-current {
  color: var(--color-text);
  font-weight: 500;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-xl);
  align-items: start;
}

/* ===== 左侧图库 ===== */
.product-gallery {
  position: sticky;
  top: 6rem;
}

.product-gallery-main {
  aspect-ratio: 1;
  background: var(--color-border);
  margin-bottom: var(--space-sm);
  overflow: hidden;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-gallery-note {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.product-gallery-thumbs {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.product-gallery-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color var(--transition);
}

.product-gallery-thumb:hover,
.product-gallery-thumb.is-active {
  border-color: var(--color-accent);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== 右侧信息 ===== */
.product-info {
  min-width: 0;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.product-price-block {
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

.product-price-inc {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

.product-meta {
  margin-bottom: var(--space-md);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.product-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.9rem;
}

.product-meta-label {
  color: var(--color-text-muted);
}

.product-meta-value {
  font-weight: 500;
}

.product-variant {
  margin-bottom: var(--space-lg);
}

.product-variant-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.product-variant-select {
  width: 100%;
  max-width: 320px;
  padding: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  cursor: pointer;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.product-add-cart {
  padding: var(--space-sm) var(--space-lg);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--color-text);
  color: var(--color-bg);
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}

.product-add-cart:hover:not(:disabled) {
  background: var(--color-accent);
}

.product-add-cart:disabled {
  opacity: 0.7;
  cursor: default;
}

.product-ask {
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.95rem;
  font-weight: 500;
  border: 2px solid var(--color-border);
  display: inline-block;
  transition: border-color var(--transition), color var(--transition);
}

.product-ask:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.product-description h2 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.product-description-body {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .product-gallery {
    position: static;
  }

  .product-gallery-main {
    max-height: 70vh;
    aspect-ratio: 4/3;
  }
}

@media (max-width: 600px) {
  .product-title {
    font-size: 1.4rem;
  }

  .product-variant-select {
    max-width: none;
  }
}
