.xiancai-product-detail { min-width: 0; padding-block: 0; }
.xiancai-product-detail .container { max-width: 1600px; }
.xiancai-product-detail .product-description .prose { max-width: none; }
.xiancai-product-detail h1 { font-size: 44px; }
.xc-product-layout { display: grid; grid-template-columns: minmax(0, 894px) minmax(0, 1fr); gap: clamp(32px, 4vw, 90px); align-items: stretch; }
.xc-product-layout:not(:has(> .xc-product-gallery)) { grid-template-columns: minmax(0, 1fr); }
.xc-product-gallery { position: relative; padding-left: 174px; min-width: 0; align-self: start; }
.xc-product-gallery__main { width: 100%; max-width: 720px; aspect-ratio: 1; overflow: hidden; }
.xc-product-gallery__main .swiper-wrapper, .xc-product-gallery__main .swiper-slide { height: 100%; }
.xc-product-gallery__frame { width: 100%; height: 100%; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--blush); padding: 1.5px; background: #fff; }
.xc-product-gallery__frame img { display: block; width: 100%; height: 100%; object-fit: contain; background: var(--tint); }
.xc-product-gallery__previews { position: absolute; top: 0; bottom: 0; left: 0; width: 150px; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 16px; }
.xc-product-gallery__previews::-webkit-scrollbar { display: none; }
.xc-product-gallery__preview { flex: 0 0 150px; width: 150px; height: 150px; padding: 0; border: 1px solid transparent; border-radius: 5px; overflow: hidden; background: var(--tint); cursor: pointer; }
.xc-product-gallery__preview img { display: block; width: 100%; height: 100%; object-fit: contain; }
.xc-product-gallery__preview[aria-pressed="true"] { border-color: var(--brand); }
.xc-product-gallery__preview:focus-visible { outline: 2px solid var(--brand); outline-offset: -3px; }
.xc-product-summary { display: flex; flex-direction: column; min-width: 0; align-self: center; }
.xc-product-summary h1 { overflow-wrap: anywhere; margin-top: 0; }
.xc-product-summary .lead { margin: 0; width: 100%; max-width: 700px; }
.xc-product-social { margin: 0 0 30px; align-self: flex-start; }
.xc-product-social .masthead-social-icon { position: relative; }
.xc-product-social .masthead-social-icon::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--brand); transform: scaleX(0); transition: transform .2s ease; }
.xc-product-social .masthead-social-icon:hover::after, .xc-product-social a:focus-visible::after { transform: scaleX(1); }
.xc-product-social a:hover { opacity: 1; }
.xc-product-actions { display: flex; gap: 16px; margin-top: 50px; padding-top: 0; }
.xc-product-actions .button { flex: 1; white-space: nowrap; padding-inline: 16px; }
.xc-product-actions .button.secondary { color: var(--brand); border-color: var(--brand); }
.xc-product-actions .button.secondary:hover { color: var(--brand-dark); border-color: var(--brand-dark); background: var(--tint); }
.xiancai-product-detail .xc-product-layout { padding-bottom: 72px; }
.xiancai-product-detail .product-description { padding-block: 72px; background: #FFF7F4; border-block: 1px solid #d8d8d8; }
body.single-product .xiancai-inquiry { padding-block: 72px; }
body.single-product .site-footer { border-top-color: #d8d8d8; padding-top: 72px; }
.product-description .prose > :last-child { margin-bottom: 0; }
.product-description .prose + .product-faq { margin-top: 40px; }
.xc-product-details-heading { text-align: left; margin-bottom: 40px; }
.xc-product-details-heading h2 { margin-bottom: 0; }
.product-description .prose h3 { font: 400 24px/1.3 Georgia, serif; text-align: left; margin: 40px 0 24px; }
.product-description .prose h3:first-child { margin-top: 0; }
.product-description table { width: 100%; border-collapse: collapse; border: 1px solid #d8d8d8; table-layout: fixed; }
.product-description th, .product-description td { border: 1px solid #d8d8d8; padding: 14px 16px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.product-description th:first-child, .product-description td:first-child { width: 30%; }
.product-description table > :is(thead, tbody):first-child > tr:first-child > :is(th, td) { background: #A22D6D; color: #fff; }
.product-description table > :is(thead, tbody):first-child > tr:first-child > :is(th, td) * { color: inherit; }
@media (max-width: 1599px) {
    .xc-product-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
    .xc-product-gallery { padding-left: 134px; }
    .xc-product-gallery__previews { width: 110px; }
    .xc-product-gallery__preview { flex-basis: 110px; width: 110px; height: 110px; }
    .xc-product-actions { gap: 10px; }
    .xc-product-actions .button { padding-inline: 10px; font-size: 16px; }
}
@media (max-width: 1100px) {
    .xc-product-layout { grid-template-columns: minmax(0, 1fr); }
    .xc-product-gallery { width: 100%; max-width: 894px; margin-inline: auto; padding-left: 0; }
    .xc-product-gallery__main { margin-inline: auto; }
    .xc-product-gallery__previews { position: static; width: 100%; margin-top: 16px; flex-direction: row; overflow-x: auto; overflow-y: hidden; }
    .xc-product-summary { min-height: 0; }
}
@media (max-width: 767px) {
    .xiancai-product-detail h1 { font-size: 32px; }
    .xc-product-gallery__preview { flex-basis: 90px; width: 90px; height: 90px; }
    .xc-product-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .xc-product-actions .button { font-size: 14px; padding-inline: 8px; }
}
.editor-styles-wrapper .xc-product-gallery__main .swiper-wrapper { display: block; height: 100%; }
.editor-styles-wrapper .xc-product-gallery__main .swiper-slide:not(:first-child) { display: none; }
.editor-styles-wrapper .xc-product-gallery__main .swiper-slide { width: 100%; height: 100%; }
