/* 产品详情页 - 基于 NanoSoft 产品页参考设计 */

.product-page {
  padding: 28px 0 64px;
  background: #fff;
}

.product-breadcrumb {
  font-family: 'Raleway', 'Helvetica', 'Arial', sans-serif;
  font-size: 14px;
  color: #999;
  margin-bottom: 28px;
}

.product-breadcrumb a {
  color: #999;
}

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

.breadcrumb-sep {
  margin: 0 8px;
  color: #ccc;
}

/* 产品详情双列布局 */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-bottom: 48px;
}

/* 左侧：图片区 */
.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.product-main-image {
  width: 100%;
  background: #f8f8f8;
  overflow: hidden;
  margin-bottom: 16px;
}

.product-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-thumbnails {
  display: flex;
  gap: 12px;
}

.product-thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.product-thumb:hover {
  border-color: #333;
}

.product-thumb.active {
  border-color: #333;
}

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

/* 右侧：购买信息区 */
.product-info-section {
  min-width: 0;
}

.product-page-title {
  font-family: 'Raleway', 'Helvetica', 'Arial', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.product-sku {
  font-family: 'Raleway', 'Helvetica', 'Arial', sans-serif;
  font-size: 13px;
  color: #999;
  margin: 0 0 12px 0;
}

.product-price {
  font-family: 'Raleway', 'Helvetica', 'Arial', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0 0 28px 0;
}

/* 表单选项 */
.product-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 100%;
}

.product-option label {
  display: block;
  font-family: 'Raleway', 'Helvetica', 'Arial', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 10px;
}

.product-option select {
  width: 100%;
  padding: 12px 36px 12px 14px;
  font-family: 'Raleway', 'Helvetica', 'Arial', sans-serif;
  font-size: 15px;
  border: 1px solid #333;
  background: #fff;
  cursor: pointer;
  appearance: auto;
}

.product-option select:focus {
  outline: none;
}

/* 数量加减器 */
.product-quantity-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #333;
  width: fit-content;
}

.qty-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  font-size: 18px;
  font-weight: 400;
  color: #333;
  background: #fff;
  border: none;
  border-right: 1px solid #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.qty-btn:last-of-type {
  border-right: none;
  border-left: 1px solid #333;
}

.qty-btn:hover {
  background: #f5f5f5;
}

.product-quantity-stepper input {
  width: 52px;
  height: 38px;
  padding: 0;
  font-family: 'Raleway', 'Helvetica', 'Arial', sans-serif;
  font-size: 15px;
  text-align: center;
  border: none;
  background: #fff;
}

.product-quantity-stepper input:focus {
  outline: none;
}

/* Add to Cart - 深蓝黑按钮 */
.product-add-to-cart {
  display: block;
  width: 100%;
  max-width: 320px;
  padding: 14px 28px;
  font-family: 'Raleway', 'Helvetica', 'Arial', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #1a1a2e;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
}

.product-express-quote {
  display: block;
  width: 100%;
  max-width: 320px;
  padding: 14px 28px;
  font-family: 'Raleway', 'Helvetica', 'Arial', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
  background: #fff;
  border: 1px solid #1a1a2e;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.product-express-quote:hover {
  background: #1a1a2e;
  color: #fff;
}

.product-add-to-cart:hover {
  background: #2d2d44;
}

.product-add-to-cart:active {
  transform: translateY(1px);
}

.product-download-wrap {
  margin-top: 18px;
  display: flex;
  justify-content: flex-start;
}

.product-download-btn {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #1a1a2e;
  color: #1a1a2e;
  font-size: 14px;
  font-weight: 600;
}

.product-download-btn:hover {
  background: #1a1a2e;
  color: #fff;
}

/* 底部：产品描述区 - 与左列图片对齐 */
.product-description-section {
  /* max-width: calc((100% - 56px) / 2); */
  padding-top: 8px;
}

.product-notice {
  font-family: 'Raleway', 'Helvetica', 'Arial', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin: 0 0 20px 0;
}

.product-notice strong {
  color: #333;
}

.product-description {
  font-family: 'Raleway', 'Helvetica', 'Arial', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #444;
  margin: 0;
}

/* 响应式 */
@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 40px;
  }

  .product-gallery {
    position: static;
  }

  .product-description-section {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .product-page {
    padding: 20px 0 48px;
  }

  .product-breadcrumb {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .product-page-title {
    font-size: 22px;
  }

  .product-price {
    font-size: 18px;
  }

  .product-add-to-cart {
    max-width: 100%;
  }
}
