.product-gallery { padding: 80px 0; border-bottom: 1px solid var(--border); background: var(--bg-surface); scroll-margin-top: 100px; }
.product-gallery .section-title { text-align: center; margin-bottom: 20px; }
.product-gallery-intro { max-width: 780px; margin: 0 auto 28px; text-align: center; color: var(--text-secondary); line-height: 1.7; }
.product-gallery-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.product-gallery-tabs[hidden], .product-gallery-panel[hidden] { display: none; }
.product-gallery-tabs button, .product-gallery-modal-actions button { padding: 10px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 14px; cursor: pointer; }
.product-gallery-tabs button[aria-selected="true"] { color: var(--accent-hover); border-color: var(--accent); background: #fdf1ec; }
.product-gallery-tabs button:hover { border-color: var(--accent); }
.product-gallery :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.product-gallery-panel { margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-body); }
.product-gallery-panel + .product-gallery-panel { margin-top: 24px; }
.product-gallery[data-gallery-ready] .product-gallery-panel { margin-top: 0; }
.product-gallery-preview { max-height: 560px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.product-gallery-preview a { display: block; cursor: zoom-in; }
.product-gallery-preview img { display: block; width: 100%; max-width: 100%; height: auto; }
.product-gallery-panel figcaption { padding: 24px 28px; border-top: 1px solid var(--border); background: var(--bg-surface); }
.product-gallery-badge { display: inline-block; margin-bottom: 10px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--text-secondary); }
.product-gallery-panel h3 { margin: 0 0 10px; color: var(--text-primary); font-size: 20px; line-height: 1.4; }
.product-gallery-panel figcaption p { margin: 0 0 16px; color: var(--text-secondary); font-size: 15px; line-height: 1.7; max-width: 900px; }
.product-gallery-enlarge { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-size: 14px; font-weight: 600; }
.product-gallery-note { margin-top: 20px; color: var(--text-secondary); font-size: 13px; line-height: 1.7; }
.product-gallery-modal { width: min(1440px, 96vw); max-width: 96vw; max-height: 92vh; padding: 0; border: 1px solid var(--border); border-radius: 12px; color: var(--text-primary); background: var(--bg-surface); margin: auto; }
.product-gallery-modal::backdrop { background: rgb(0 0 0 / 65%); }
.product-gallery-modal:not([open]) { display: none; }
.product-gallery-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.product-gallery-modal-header h3 { margin: 0; font-size: 16px; line-height: 1.5; }
.product-gallery-modal-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.product-gallery-modal-actions a { color: var(--accent); font-size: 13px; }
.product-gallery-modal-image { max-height: 72vh; overflow: auto; overscroll-behavior: contain; background: var(--bg-body); }
.product-gallery .product-gallery-modal-image img { display: block; width: 100%; height: auto; max-width: none; }
.product-gallery .product-gallery-modal-image.is-actual-size img { width: auto; }
@media (max-width: 700px) {
    .product-gallery { padding: 48px 0; }
    .product-gallery-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 4px; }
    .product-gallery-tabs button { flex-shrink: 0; }
    .product-gallery-preview { max-height: 400px; }
    .product-gallery-panel figcaption { padding: 20px; }
    .product-gallery-modal-header { flex-direction: column; align-items: flex-start; padding: 16px; }
    .product-gallery-modal-actions { flex-shrink: 1; gap: 10px; }
    .product-gallery-modal-actions button { padding: 8px 12px; font-size: 12px; }
    .product-gallery-modal-image { max-height: 65vh; }
}
