.gb-product-detail { align-items:start; gap:40px; padding-block:36px 48px; }
.gb-photo-catalog .gb-detail-info .product_meta { display:none; }
.gb-photo-catalog .gb-detail-info .woocommerce-product-rating { display:none; }
.gb-photo-catalog .gb-detail-info .product-nav { display:none; }
.gb-detail-info .product_title { font-size:clamp(25px,2.6vw,38px); line-height:1.15; letter-spacing:-.025em; overflow-wrap:anywhere; }
.gb-detail-info .woocommerce-product-details__short-description { margin-top:20px; color:var(--gb-muted); font-size:15px; line-height:1.7; }
.gb-gallery-stage { min-width:0; }
.gb-detail-gallery { position:sticky; top:130px; min-width:0; }
.gb-detail-gallery.is-single { grid-template-columns:minmax(0,1fr); }
.gb-detail-thumbs { max-height:560px; min-width:0; overflow:auto; padding:2px; }
.gb-detail-thumbs[hidden] { display:none !important; }
.gb-detail-thumb { cursor:pointer; min-height:48px; min-width:0; }
.gb-detail-thumb img { display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain; padding:0; }
.gb-detail-thumb:focus-visible,.gb-detail-main-image:focus-visible,.gb-finish-options a:focus-visible { outline:3px solid #156f8f; outline-offset:2px; }
.gb-detail-main-image { display:grid; aspect-ratio:1 / 1; overflow:hidden; cursor:default; }
.gb-detail-main-image:not(.is-placeholder) { cursor:zoom-in; }
.gb-detail-main-image img { display:block; width:100%; height:100% !important; max-height:none; padding:0 !important; object-fit:contain !important; object-position:center; }
.gb-detail-main-image.is-placeholder { cursor:default; background:#f5f6f6; }
.gb-gallery-caption { display:flex; justify-content:space-between; gap:12px; margin:10px 0; color:var(--gb-muted); font-size:11px; line-height:1.5; }
.gb-gallery-caption [data-gb-image-count] { white-space:nowrap; }
.gb-image-dialog { width:min(92vw,1000px); max-width:1000px; max-height:94vh; border:0; padding:40px 12px 12px; background:white; }
.gb-image-dialog::backdrop { background:rgba(15,20,24,.82); }
.gb-image-dialog form { position:absolute; right:8px; top:0; margin:0; }
.gb-image-dialog button { width:44px; height:44px; border:0; background:white; font-size:30px; cursor:pointer; }
.gb-image-dialog img { display:block; width:100%; height:auto; max-height:calc(94vh - 64px); object-fit:contain; }
.gb-product-facts { margin:20px 0; padding:14px 0; border-block:1px solid var(--gb-line); font-size:13px; }
.gb-product-facts div { display:grid; grid-template-columns:110px minmax(0,1fr); gap:12px; padding:5px 0; }
.gb-product-facts dt { font-weight:400; color:var(--gb-muted); }
.gb-product-facts dd { margin:0; font-weight:600; overflow-wrap:anywhere; }
.gb-finish-options>span { display:block; margin-bottom:8px; font-size:12px; font-weight:700; }
.gb-finish-options>div { display:flex; flex-wrap:wrap; gap:6px; }
.gb-finish-options a { padding:8px 10px; border:1px solid var(--gb-line); color:var(--gb-ink); font-size:12px; line-height:1.4; }
.gb-finish-options a[aria-current],.gb-finish-options a:hover { border-color:var(--gb-red); color:var(--gb-red); background:#fff7f6; }
.gb-availability-note { margin:16px 0; font-size:12px; color:var(--gb-muted); }
.gb-product-returns { margin:18px 0 10px; font-size:13px; font-weight:700; }
.gb-product-returns a { text-decoration:underline; text-underline-offset:3px; }
.gb-product-faq { border-top:1px solid var(--gb-line); padding:12px 0; font-size:13px; }
.gb-product-faq summary { cursor:pointer; font-weight:700; }
.gb-product-faq p { margin:12px 0 0; }
.gb-detail-info .gb-compliance-notice { margin-top:16px; padding:20px; background:#f4f6f6; border-left:3px solid var(--gb-red); }
.gb-detail-info .gb-compliance-notice p { font-size:13px; line-height:1.6; }
.gb-detail-info .gb-compliance-notice .gb-button { display:block; width:100%; text-align:center; min-height:46px; padding:12px 16px; }
.gb-spec-table { width:100%; border-collapse:collapse; margin:20px 0 28px; color:var(--gb-ink); }
.gb-spec-table th,.gb-spec-table td { text-align:left; padding:13px 16px; border-bottom:1px solid var(--gb-line); vertical-align:top; overflow-wrap:anywhere; }
.gb-spec-table th { width:30%; font-weight:600; background:#f5f7f7; }
.gb-product-use-note { margin-top:26px; padding-top:14px; border-top:1px solid var(--gb-line); font-size:12px; }

/* 相关产品使用主题卡片而不是 Porto 轮播，避免窄卡裁切。 */
.gb-related-products { max-width:100%; overflow:visible; }
.gb-related-products .gb-product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.gb-related-products .gb-product-card .product-photo { aspect-ratio:1 / 1; }
.gb-related-products .gb-product-card .product-photo img { width:100%; height:100%; padding:0 !important; object-fit:contain !important; }

@media(max-width:760px) {
  .gb-product-detail { gap:24px; padding-top:20px; }
  .gb-detail-gallery { position:static; }
  .gb-detail-gallery.is-single { grid-template-columns:minmax(0,1fr); }
  .gb-detail-thumbs:not([hidden]) { display:flex; max-width:100%; max-height:none; overflow-x:auto; overflow-y:hidden; padding:2px 0 6px; gap:8px; overscroll-behavior-x:contain; scrollbar-width:thin; }
  .gb-detail-thumb { flex:0 0 66px; }
  .gb-detail-info .product_title { font-size:28px; line-height:1.2; }
  .gb-spec-table th,.gb-spec-table td { padding:10px 8px; font-size:12px; }
  .gb-spec-table th { width:34%; }
  .gb-gallery-caption { font-size:10px; }
  .gb-related-products { display:block; }
  .gb-related-products .gb-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .gb-related-products .gb-product-card .product-photo { aspect-ratio:1 / 1; }
}
