.product-photo-panel { color: var(--text); }
.product-photo-help { margin: 8px 0 16px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.product-photo-frame { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--muted-surface); }
.product-photo-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.product-photo-frame.is-loading .product-photo-image { opacity: 0.2; }
.product-photo-message { position: absolute; inset: auto 16px 20px; margin: 0; color: var(--text); text-align: center; font-size: 14px; line-height: 1.5; }
.product-photo-loader { position: absolute; width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent-text); border-radius: 50%; animation: product-photo-spin 800ms linear infinite; }
.product-photo-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 12px; margin-top: 16px; }
.product-photo-choice { position: relative; min-width: 0; min-height: 72px; padding: 0; overflow: hidden; aspect-ratio: 1; border: 2px solid transparent; border-radius: 12px; background: var(--soft); cursor: pointer; }
.product-photo-choice img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-photo-choice > span { position: absolute; right: 4px; bottom: 4px; display: none; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-text); color: var(--page); font-size: 14px; font-weight: 700; }
.product-photo-choice.is-selected { border-color: var(--accent-text); }
.product-photo-choice.is-selected > span { display: grid; }
.product-photo-retry { min-height: 44px; margin-top: 12px; padding: 10px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--soft); color: var(--text); cursor: pointer; }
.product-photo-panel [hidden] { display: none !important; }
@media (hover: hover) and (pointer: fine) { .product-photo-choice:hover img { filter: brightness(1.1); } .product-photo-retry:hover { background: var(--hover); } }
@media (prefers-reduced-motion: reduce) { .product-photo-loader { animation: none; } }
@keyframes product-photo-spin { to { transform: rotate(360deg); } }
