.product-editor { color: #102a43; }
.product-editor .product-editor-section { margin-top: .6rem; padding: 1.25rem; border: 1px solid #e3eae6; border-radius: 16px; background: #fff; }
.product-editor .product-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.product-editor .product-editor-heading h3 { font-size: 1.1rem; margin: .25rem 0 .5rem; font-weight: 800; }
.product-editor .product-editor-eyebrow { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #517363; }
.product-editor .product-editor-counter { font-size: .75rem; padding: .35rem .65rem; border-radius: 100px; background: #edf5f0; color: #34634b; }
.product-editor .product-editor-help { margin-bottom: .8rem; color: #667085; font-size: .83rem; line-height: 1.6; }
.product-editor .product-editor-existing, .product-editor .product-editor-pending { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .7rem; margin: .9rem 0; }
.product-editor .product-editor-pending:empty { display: none; }
.product-editor .product-editor-tile { position: relative; margin: 0; overflow: hidden; border: 1px solid #e3eae6; border-radius: 12px; background: #f8faf9; }
.product-editor .product-editor-tile img, .product-editor .product-editor-tile video { display: block; width: 100%; height: 115px; padding: .35rem; object-fit: contain; }
.product-editor .product-editor-tile figcaption { padding: .5rem .6rem; font-size: .72rem; color: #536157; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.product-editor .product-editor-tile.is-pending { border-color: #b1cabb; }
.product-editor .product-editor-remove, .product-editor .product-editor-link { border: 0; background: transparent; color: #b33333; font-size: .76rem; padding: .4rem .6rem; font-weight: 700; }
.product-editor .product-editor-selection { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .78rem; color: #526258; }
.product-editor .product-editor-selection[hidden], .product-editor .product-editor-error[hidden] { display: none; }
.product-editor .product-editor-error { color: #b33333; font-size: .82rem; margin-top: .65rem; }
.product-editor .product-editor-size-label { display: block; margin: .35rem 0 .6rem; font-weight: 800; }
.product-editor .product-editor-size-shortcuts { display: flex; flex-wrap: wrap; gap: .5rem; }
.product-editor .product-editor-size { min-width: 42px; min-height: 40px; padding: .4rem .7rem; border: 1px solid #dce5df; border-radius: 8px; background: #fff; color: #254d39; font-weight: 750; transition: background .16s ease, border-color .16s ease; }
.product-editor .product-editor-size:hover { border-color: #779987; background: #edf5f0; }
.product-editor button:focus-visible, .product-gallery button:focus-visible { outline: 3px solid #d99a2b; outline-offset: 3px; }

.product-gallery { --product-gallery-ink: #102a43; }
.product-gallery .product-gallery-stage { position: relative; min-width: 0; }
.product-gallery .product-gallery-main { min-height: 0; aspect-ratio: 1 / 1; border-radius: 18px; background: #fafbf9; }
.product-gallery .product-gallery-main img, .product-gallery .product-gallery-main video { height: 100%; object-fit: contain; padding: .75rem; }
.product-gallery .product-gallery-main > [hidden] { display: none; }
.product-gallery .product-gallery-main .product-empty-media { height: 100%; min-height: 0; }
.product-gallery .product-gallery-load-error { width: 100%; height: 100%; display: grid; place-items: center; color: #69796e; background: #f7f9f6; font-size: .9rem; }
.product-gallery .product-gallery-expand { position: absolute; right: .65rem; bottom: .65rem; min-height: 40px; border: 1px solid #dbe4dd; border-radius: 10px; padding: .45rem .65rem; font-size: .75rem; font-weight: 750; color: var(--product-gallery-ink); background: rgba(255,255,255,.95); box-shadow: 0 3px 12px rgba(16,42,67,.06); }
.product-gallery .product-gallery-toolbar { display: flex; align-items: center; justify-content: space-between; margin: .6rem 0; color: #617064; font-size: .78rem; }
.product-gallery .product-gallery-arrows { display: flex; gap: .45rem; }
.product-gallery .product-gallery-arrow { min-width: 40px; min-height: 40px; border: 1px solid #dbe4dd; border-radius: 10px; color: var(--product-gallery-ink); background: #fff; }
.product-gallery .product-thumb-grid { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem .2rem .55rem; margin-top: 0; }
.product-gallery .product-thumb { flex: 0 0 64px; height: 64px; padding: 0; border-radius: 10px; border: 2px solid transparent; background: #f7f9f6; cursor: pointer; transition: border-color .16s ease, background .16s ease; position: relative; }
.product-gallery .product-thumb[aria-pressed="true"] { border-color: #4d7b60; background: #edf5f0; }
.product-gallery .product-thumb img, .product-gallery .product-thumb video { padding: .2rem; pointer-events: none; }
.product-gallery .product-thumb-video { position: absolute; inset: 0; display: grid; place-items: center; color: #254d39; background: rgba(255,255,255,.25); }
.product-gallery .product-gallery-dialog { width: min(1050px, 96vw); max-width: 96vw; height: min(850px, 94vh); max-height: 94vh; padding: 0; border: 0; border-radius: 18px; background: #fff; color: var(--product-gallery-ink); box-shadow: 0 24px 80px rgba(0,0,0,.24); }
.product-gallery .product-gallery-dialog:not([open]) { display: none; }
.product-gallery .product-gallery-dialog::backdrop { background: rgba(9,25,18,.78); }
.product-gallery .product-gallery-dialog.is-fallback { position: fixed; inset: 3vh 2vw; z-index: 1080; margin: auto; }
.product-gallery .product-gallery-fallback-backdrop { position: fixed; inset: 0; z-index: 1079; background: rgba(9,25,18,.78); }
.product-gallery .product-gallery-dialog-header { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; gap: 1rem; border-bottom: 1px solid #e7ede8; }
.product-gallery .product-gallery-dialog-header h4 { font-size: .95rem; font-weight: 750; margin: 0; }
.product-gallery .product-gallery-dialog-body { height: calc(100% - 128px); display: grid; place-items: center; background: #fafbf9; }
.product-gallery .product-gallery-dialog-body img, .product-gallery .product-gallery-dialog-body video { width: 100%; height: 100%; object-fit: contain; padding: 1rem; }
.product-gallery .product-gallery-dialog-footer { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: .7rem; }
@media (max-width: 575.98px) { .product-editor .product-editor-section { padding: 1rem; } .product-gallery .product-gallery-dialog { border-radius: 10px; } .product-gallery .product-gallery-dialog-header h4 { max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) { .product-editor .product-editor-size, .product-gallery .product-thumb { transition: none; } }
