/* Sunrise Violin — 商品详情页 v1（第 4 步）
   依赖：vn-design.css
   覆盖：/product/* （WooCommerce 单品页） */

body.vn-ui.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 4.4vw, 72px);
  align-items: start;
  margin-bottom: clamp(48px, 6vw, 88px);
}

/* 2. 图集：细边框 + 直角 */
body.vn-ui .woocommerce-product-gallery {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r2);
  padding: 14px;
  width: 100% !important;
  float: none !important;
}
body.vn-ui .woocommerce-product-gallery__wrapper img {
  border-radius: 0 !important;
  display: block;
  width: 100% !important;
  height: auto !important;
}
body.vn-ui .flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 0 !important;
  padding: 0;
}
body.vn-ui .flex-control-thumbs li { width: auto; margin: 0 !important; }
body.vn-ui .flex-control-thumbs img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  opacity: .55;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  transition: opacity .2s ease;
}

/* 3. 信息栏 */
body.vn-ui.single-product .summary.entry-summary {
  width: 100% !important;
  float: none !important;
}
body.vn-ui .summary.entry-summary .product_title {
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.2;
  text-wrap: pretty;
  margin-bottom: 14px;
}
body.vn-ui.single-product .summary.entry-summary .price {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

body.vn-ui .woocommerce-product-details__short-description {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.85;
  margin-bottom: 26px;
}

body.vn-ui.single-product .summary.entry-summary form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  padding: 0;
  border: 0;
}

body.vn-ui.single-product .product_meta {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line2);
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted2);
}
body.vn-ui.single-product .product_meta a { color: var(--accentd); }

/* 4. 加购按钮铺满 */
body.vn-ui.single-product .single_add_to_cart_button {
  flex: 1 1 220px;
  min-height: 52px;
}
body.vn-ui.single-product .quantity .qty {
  width: 78px;
  min-height: 52px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
}

/* 5. 参数 Tab */
body.vn-ui .woocommerce-tabs { margin-top: clamp(40px, 5vw, 72px); }
body.vn-ui .woocommerce-tabs ul.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0 0 28px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
body.vn-ui .woocommerce-tabs ul.tabs li a {
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
  border: 0;
  background: none;
}
body.vn-ui .woocommerce-tabs ul.tabs li.active a { color: var(--ink); }

/* 6. 规格表 */
body.vn-ui .woocommerce-product-attributes {
  border-collapse: collapse;
  width: 100%;
}
body.vn-ui .woocommerce-product-attributes th,
body.vn-ui .woocommerce-product-attributes td {
  padding: 13px 16px;
  border: 1px solid var(--line);
  font-size: 14px;
}
body.vn-ui .woocommerce-product-attributes th {
  background: var(--bg2);
  text-align: left;
  width: 34%;
}

/* 7. 相关商品：沿用 vn-shop.css 卡片，仅补间距 */
body.vn-ui.single-product .related.products {
  margin-top: clamp(48px, 6vw, 88px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}
body.vn-ui.single-product .related.products > h2 {
  font-size: clamp(22px, 2.6vw, 30px);
  margin-bottom: 28px;
}

/* 8. 响应式：≤1024 单列 */
@media (max-width: 1024px) {
  body.vn-ui.single-product div.product {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}
