.bpg-viewer-page { background: #101419; color: #edf0f3; padding: clamp(16px, 3vw, 48px); }
.bpg-viewer-page .bpg-viewer { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: clamp(24px, 3vw, 48px); max-width: 1680px; margin: 0 auto; }
.bpg-viewer-page .bpg-viewer-image { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 320px; padding: 16px; background: #080b0f; border-radius: 8px; }
.bpg-viewer-page .bpg-viewer-preview { display: block; width: auto; height: auto; max-width: 100%; max-height: 82vh; object-fit: contain; margin: 0; }
.bpg-viewer-page .bpg-viewer-panel { float: none; width: auto; min-width: 0; margin: 0; padding: 8px 0; }
.bpg-viewer-page .bpg-viewer-title { margin: 0 0 16px; color: #fff; font-size: clamp(24px, 2.5vw, 36px); line-height: 1.25; }
.bpg-viewer-page .bpg-viewer-categories { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 24px; font-size: .9rem; }
.bpg-viewer-page .bpg-viewer-categories a, .bpg-viewer-page .bpg-view-cart { color: #c5d8ee; text-decoration: underline; text-underline-offset: 3px; }
.bpg-viewer-page .bpg-viewer-description, .bpg-viewer-page .bpg-viewer-short-description { margin: 0 0 24px; color: #d0d6de; line-height: 1.8; overflow-wrap: anywhere; }
.bpg-viewer-page .bpg-viewer-description img { max-width: 100%; height: auto; }
.bpg-viewer-page .bpg-viewer-panel .price { color: #fff; font-size: 1.4rem; margin: 24px 0; }
.bpg-viewer-page .bpg-viewer-panel .price del { opacity: .65; }
.bpg-viewer-page .bpg-viewer-panel .price ins { background: none; }
.bpg-viewer-page .bpg-viewer-panel .cart { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.bpg-viewer-page .bpg-viewer-panel .variations_form { display: block; }
.bpg-viewer-page .bpg-viewer-panel .variations { width: 100%; border: 0; margin-bottom: 20px; }
.bpg-viewer-page .bpg-viewer-panel .variations th, .bpg-viewer-page .bpg-viewer-panel .variations td { border: 0; padding: 8px 0; text-align: start; background: transparent; }
.bpg-viewer-page .bpg-viewer-panel .variations select { width: 100%; min-height: 44px; padding: 8px; background: #fff; color: #18212a; border-radius: 4px; }
.bpg-viewer-page .bpg-viewer-panel .quantity { display: none !important; }
.bpg-viewer-page .bpg-viewer-panel .single_add_to_cart_button { min-height: 44px; padding: 12px 24px; border: 0; border-radius: 4px; background: #edf2f7; color: #111827; font: inherit; font-weight: 600; cursor: pointer; }
.bpg-viewer-page .bpg-viewer-panel .single_add_to_cart_button:disabled, .bpg-viewer-page .bpg-viewer-panel .single_add_to_cart_button.disabled { opacity: .5; cursor: not-allowed; }
.bpg-viewer-page .bpg-viewer-panel .stock { color: #c7e7d2; }
.bpg-viewer-page .bpg-viewer-panel .out-of-stock, .bpg-viewer-page .bpg-viewer-unavailable { color: #ffc9c9; }
.bpg-viewer-page .bpg-viewer-panel .reset_variations { color: #c5d8ee; }
.bpg-viewer-page .bpg-cart-status { font-size: .9rem; line-height: 1.6; }
.bpg-viewer-page .bpg-viewer-panel :is(a, button, input, select):focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
@media (max-width: 900px) {
	.bpg-viewer-page .bpg-viewer { grid-template-columns: minmax(0, 1fr); }
	.bpg-viewer-page .bpg-viewer-image { min-height: 180px; padding: 8px; }
	.bpg-viewer-page .bpg-viewer-preview { max-height: 70vh; }
}
.bpg-viewer-page .bpg-related { max-width: 1200px; margin: 48px auto 0; }
.bpg-viewer-page .bpg-related .bpg-gallery { --bpg-photo-columns: 4; --bpg-photo-gap: 16px; }
.bpg-viewer-page .bpg-related .bpg-photo-caption { padding: 12px; }
.bpg-viewer-page .bpg-related .bpg-photo-title { font-size: .95rem; }
@media (max-width: 1024px) { .bpg-viewer-page .bpg-related .bpg-gallery { --bpg-photo-columns: 2; } }
@media (max-width: 767px) { .bpg-viewer-page .bpg-related .bpg-gallery { --bpg-photo-columns: 1; } }
.bpg-viewer-page .bpg-related-heading { margin: 0 0 24px; color: #fff; font-size: 1.5rem; }
.bpg-viewer-page .bpg-viewer-navigation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; max-width: 1680px; margin: 0 auto 24px; }
.bpg-viewer-page .bpg-viewer-navigation a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; color: #d1e0f0; border: 1px solid #39414b; border-radius: 4px; text-decoration: none; }
.bpg-viewer-page .bpg-viewer-navigation a:hover { background: #202832; }
.bpg-viewer-page .bpg-viewer-navigation a:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.bpg-viewer-page .bpg-viewer-navigation [rel="prev"] { grid-column: 1; grid-row: 1; justify-self: start; }
.bpg-viewer-page .bpg-viewer-navigation .bpg-back-gallery { grid-column: 2; grid-row: 1; justify-self: center; text-align: center; }
.bpg-viewer-page .bpg-viewer-navigation [rel="next"] { grid-column: 3; grid-row: 1; justify-self: end; }
.bpg-preview-open { display: flex; justify-content: center; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.bpg-preview-open:focus-visible { outline: 3px solid #93c5fd; outline-offset: 4px; }
/* Keep theme button/image decoration out of the photograph edges. */
.bpg-viewer-page .bpg-viewer-image { border: 0; box-shadow: none; }
.bpg-viewer-page .bpg-preview-open,
.bpg-viewer-page .bpg-preview-open:is(:hover, :focus, :active) { appearance: none; -webkit-appearance: none; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; background-image: none; transform: none; }
.bpg-viewer-page .bpg-preview-open::before,
.bpg-viewer-page .bpg-preview-open::after { content: none; }
.bpg-viewer-page .bpg-viewer-preview,
.bpg-photo-lightbox .bpg-enlarged-preview { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.bpg-viewer-page .bpg-preview-open:focus-visible { outline: 3px solid #93c5fd; outline-offset: 4px; }
.bpg-photo-lightbox { width: 96vw; max-width: 1800px; max-height: 96vh; padding: 48px 12px 12px; border: 0; border-radius: 8px; background: #080b0f; }
.bpg-photo-lightbox::backdrop { background: rgb(0 0 0 / 85%); }
.bpg-photo-lightbox .bpg-enlarged-preview { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(96vh - 72px); object-fit: contain; margin: auto; }
.bpg-photo-lightbox .bpg-preview-close { position: absolute; top: 4px; inset-inline-end: 8px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: #fff; font-size: 32px; cursor: pointer; }
.bpg-viewer-page .bpg-view-cart { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 24px; border: 0; border-radius: 4px; background: #edf2f7; color: #111827; font: inherit; font-weight: 600; text-decoration: none; }
.bpg-viewer-media { min-width: 0; }
.bpg-photo-actions { display: flex; align-items: center; gap: 12px; margin: 16px 0; }
.bpg-photo-actions :is(button, a) { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px 16px; border: 1px solid #39414b; border-radius: 4px; background: #202832; color: #edf0f3; text-decoration: none; cursor: pointer; }
.bpg-photo-actions .bpg-like-photo { font-size: 26px; }
.bpg-photo-actions .bpg-like-photo[aria-pressed="true"] { color: #ff405c; }
.bpg-viewer-page .bpg-photo-comments { margin-top: 24px; padding: 20px; border: 1px solid #39414b; border-radius: 8px; overflow-wrap: anywhere; }
.bpg-viewer-page .bpg-photo-comments #reviews #comments { float: none; width: auto; }
.bpg-viewer-page .bpg-photo-comments #reviews { display: flex; flex-direction: column; }
.bpg-viewer-page .bpg-photo-comments #review_form_wrapper { order: -1; margin-bottom: 24px; }
.bpg-viewer-page .bpg-photo-comments :is(h2, h3, label, .comment-text, .meta) { color: #edf0f3; }
.bpg-viewer-page .bpg-photo-comments :is(input:not([type="checkbox"]), textarea) { max-width: 100%; padding: 10px; border-radius: 4px; background: #fff; color: #18212a; }
.bpg-viewer-page .bpg-photo-comments textarea { width: 100%; }
.bpg-viewer-page .bpg-photo-comments a { color: #c5d8ee; }
.bpg-photo-actions :is(button, a):focus-visible, .bpg-photo-comments :is(a, button, input, textarea):focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
.bpg-viewer-page .bpg-photo-actions :is(.bpg-like-photo, .bpg-comment-photo) { padding: 6px; border: 0; background: transparent; }
.bpg-viewer-page dialog.bpg-photo-comments { width: min(440px, calc(100vw - 24px)); max-height: min(700px, 85dvh); margin: auto; padding: 0; border: 1px solid #303640; border-radius: 16px; background: #15191f; color: #edf0f3; box-shadow: 0 24px 80px rgb(0 0 0 / 45%); }
.bpg-photo-comments::backdrop { background: rgb(0 0 0 / 65%); }
.bpg-comments-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid #303640; }
.bpg-comments-header h2 { margin: 0; font-size: 16px; font-weight: 600; }
.bpg-comments-close { width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: #edf0f3; font-size: 28px; cursor: pointer; }
.bpg-comments-body { padding: 16px; }
.bpg-viewer-page .bpg-photo-comments #reviews #comments { max-height: 35dvh; overflow-y: auto; margin-bottom: 16px; }
.bpg-viewer-page .bpg-photo-comments #reviews #comments > h2, .bpg-photo-comments .comment-form-comment > label, .bpg-photo-comments .comment-reply-title { display: none; }
.bpg-viewer-page .bpg-photo-comments #review_form_wrapper { order: 1; margin: 0; padding-top: 12px; border-top: 1px solid #303640; }
.bpg-photo-comments .comment-form { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.bpg-photo-comments .comment-form > p { margin: 0; }
.bpg-photo-comments .comment-form-author, .bpg-photo-comments .comment-form-email { flex: 1 1 140px; }
.bpg-photo-comments .comment-form label { display: block; font-size: 12px; margin-bottom: 4px; }
.bpg-photo-comments .comment-form-comment { flex: 1 1 100%; }
.bpg-viewer-page .bpg-photo-comments textarea { min-height: 64px; resize: vertical; border: 1px solid #39414b; border-radius: 10px; background: #20262e; color: #edf0f3; font: inherit; }
.bpg-viewer-page .bpg-photo-comments #submit { padding: 6px 12px; border: 0; background: transparent; color: #69b4ff; font-weight: 600; cursor: pointer; }
.bpg-photo-comments .commentlist { padding: 0; list-style: none; }
.bpg-viewer-page .bpg-photo-comments #reviews #comments ol.commentlist li .comment-text { margin-inline-start: 48px; padding: 8px 12px; border: 0; background: transparent; }
.bpg-viewer-page .bpg-photo-comments #reviews #comments ol.commentlist li img.avatar { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; }
@media (max-width: 600px) { .bpg-viewer-page dialog.bpg-photo-comments { width: 100%; max-width: 100%; max-height: 85dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; } }
/* Both buttons share the native form so theme form spacing cannot offset them. */
.bpg-viewer-page .bpg-purchase-actions { display: block; margin: 24px 0; }
.bpg-viewer-page .bpg-purchase-actions form.cart { width: 100%; margin: 0 !important; padding: 0 !important; border: 0; }
.bpg-viewer-page .bpg-purchase-actions form.cart:not(.variations_form):not(.grouped_form),
.bpg-viewer-page .bpg-purchase-actions .variations_button,
.bpg-viewer-page .bpg-purchase-actions .grouped_form { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bpg-viewer-page .bpg-purchase-actions :is(.single_add_to_cart_button, .bpg-view-cart) { display: inline-flex !important; flex: 1 1 0; align-self: center; align-items: center; justify-content: center; box-sizing: border-box; width: auto; height: 48px !important; min-height: 48px; margin: 0 !important; padding: 8px 12px !important; border: 0; border-radius: 4px; background: #edf2f7; color: #111827; font: inherit; font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; float: none !important; vertical-align: middle; }
.bpg-viewer-page .bpg-purchase-actions .group_table { flex-basis: 100%; }
