.product-camera-view:not([open]) { display: none; }
.product-camera-view[open] {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
}
.product-camera-view::backdrop { background: #000; }
.product-camera-shell { position: relative; isolation: isolate; width: 100%; height: 100%; background: #000; }
.product-camera-frame { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #000; }
.product-camera-frame > video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: center; }
.product-camera-frame > video[hidden] { display: none; }
.product-camera-view button { font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.product-camera-view button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.product-camera-preview { position: absolute; inset: 0; z-index: 1; touch-action: none; }
.product-camera-focus { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; border: 2px solid #fff; border-radius: 12px; box-shadow: 0 0 0 1px rgba(0,0,0,.28), 0 3px 12px rgba(0,0,0,.25); opacity: 0; transform: translate(-50%, -50%) scale(1.35); pointer-events: none; transition: opacity .2s ease, transform .22s ease; }
.product-camera-focus.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.product-camera-focus.is-set { border-color: #b9ffbf; }
.product-camera-zoom-feedback { position: absolute; left: 50%; bottom: 220px; min-width: 44px; padding: 7px 11px; border-radius: 999px; background: rgba(24,22,21,.7); color: #fff; font-size: 14px; font-weight: 700; text-align: center; opacity: 0; transform: translate(-50%, 6px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
.product-camera-zoom-feedback.is-visible { opacity: 1; transform: translate(-50%, 0); }
.product-camera-capture-feedback { position: absolute; inset: 0; z-index: 1; background: #fff; opacity: 0; pointer-events: none; }
.product-camera-capture-feedback.is-visible { animation: product-camera-flash 220ms cubic-bezier(0.1, 0.9, 0.2, 1); }
@keyframes product-camera-flash { 0% { opacity: .65; } 100% { opacity: 0; } }
.product-camera-status[hidden], .product-camera-fallback[hidden] { display: none; }
.product-camera-status { position: absolute; top: 42%; left: 8%; right: 8%; padding: 12px 16px; border-radius: 12px; background: rgba(24, 22, 21, .82); color: #fff; text-align: center; font-size: 14px; }
.product-camera-fallback { position: absolute; top: 58%; left: 50%; width: max-content; max-width: calc(100% - 32px); padding: 10px 16px; border: 0; border-radius: 999px; transform: translateX(-50%); background: #fff; color: #24211f; font-size: 14px; cursor: pointer; }
.product-camera-header { position: absolute; z-index: 2; top: max(22px, env(safe-area-inset-top)); left: 28px; display: flex; align-items: center; gap: 36px; }
.product-camera-close, .product-camera-flash { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(12,12,12,.72); color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.28); cursor: pointer; transition: transform 140ms cubic-bezier(0.2, 0, 0, 1), background-color 140ms ease; }
.product-camera-close:active, .product-camera-flash:active { transform: scale(.93); }
.product-camera-close svg, .product-camera-flash svg { width: 25px; height: 25px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.product-camera-flash .product-camera-flash-slash { opacity: 1; transition: opacity .16s ease; }
.product-camera-flash[aria-pressed="true"] .product-camera-flash-slash { opacity: 0; }
.product-camera-flash:disabled { opacity: .75; cursor: not-allowed; }
.product-camera-tools { position: absolute; z-index: 2; top: max(22px, env(safe-area-inset-top)); right: 24px; display: flex; align-items: center; gap: 12px; }
.product-camera-lens, .product-camera-native { display: flex; align-items: center; justify-content: center; gap: 5px; height: 44px; padding: 0 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; background: rgba(12,12,12,.72); color: #fff; text-shadow: none; font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.28); transition: transform 140ms cubic-bezier(0.2, 0, 0, 1), background-color 140ms ease; }
.product-camera-lens[hidden] { display: none; }
.product-camera-native { width: 48px; height: 48px; padding: 0; }
.product-camera-lens svg, .product-camera-native svg { width: 23px; height: 23px; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.product-camera-tools button:active { transform: scale(.95); }
.product-camera-tools button:disabled { opacity: .55; }
.product-camera-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.product-camera-controls { position: absolute; right: 0; bottom: 0; left: 0; z-index: 2; box-sizing: border-box; padding: 0 35px max(34px, env(safe-area-inset-bottom)); color: #fff; }
.product-camera-thumbnails { display: flex; align-items: center; gap: 12px; height: 102px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.product-camera-thumbnails::-webkit-scrollbar { display: none; }
.product-camera-thumb { position: relative; flex: 0 0 57px; width: 57px; height: 102px; border-radius: 4px; background: rgba(20,19,18,.6); animation: resellaCameraThumbEnter 200ms cubic-bezier(0.05, 0.7, 0.1, 1) both; transition: transform 140ms ease, opacity 140ms ease; }
@keyframes resellaCameraThumbEnter { from { opacity: 0; transform: scale(0.85) translateY(6px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.product-camera-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 4px; }
.product-camera-thumb-remove { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; background: rgba(24,22,21,.9); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.22); cursor: pointer; transition: transform 120ms cubic-bezier(0.25, 1, 0.5, 1); }
.product-camera-thumb-remove svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.product-camera-thumb-remove:active { transform: scale(.88); }
.product-camera-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 10px; min-height: 140px; margin-top: 2px; }
.product-camera-shutter { position: relative; top: -8px; grid-column: 2; justify-self: center; display: grid; place-items: center; width: 114px; height: 114px; padding: 6px; border: 3px solid #fff; border-radius: 50%; background: rgba(24,22,21,.88); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: transform 140ms cubic-bezier(0.2, 0, 0, 1), box-shadow 140ms ease; }
.product-camera-shutter span { display: block; width: 100%; height: 100%; border-radius: 50%; background: #fff; transition: transform 140ms cubic-bezier(0.2, 0, 0, 1); }
.product-camera-shutter:disabled { opacity: .55; cursor: not-allowed; }
.product-camera-shutter:not(:disabled):active { transform: scale(.92); }
.product-camera-shutter:not(:disabled):active span { transform: scale(.88); }
.product-camera-confirm { position: relative; top: -8px; grid-column: 3; justify-self: end; display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 145px; height: 66px; padding: 0 20px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(24,22,21,.9); color: #fff; font-size: 18px; font-weight: 600; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); transition: transform 140ms cubic-bezier(0.2, 0, 0, 1), background-color 140ms ease; }
.product-camera-confirm svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.product-camera-confirm:disabled { opacity: .6; cursor: not-allowed; }
.product-camera-confirm:not(:disabled):active { transform: scale(.96); }
@media (max-width: 520px) {
  .product-camera-header { top: max(16px, env(safe-area-inset-top)); left: 18px; gap: 38px; }
  .product-camera-close, .product-camera-flash { width: 48px; height: 48px; }
  .product-camera-close svg, .product-camera-flash svg { width: 25px; height: 25px; }
  .product-camera-tools { top: max(16px, env(safe-area-inset-top)); right: 18px; gap: 8px; }
  .product-camera-lens, .product-camera-native { height: 44px; }
  .product-camera-native { width: 48px; height: 48px; }
  .product-camera-zoom-feedback { bottom: 175px; }
  .product-camera-controls { padding: 0 22px max(22px, env(safe-area-inset-bottom)); }
  .product-camera-thumbnails { gap: 8px; height: 96px; }
  .product-camera-thumb { flex-basis: 54px; width: 54px; height: 96px; }
  .product-camera-thumb-remove { top: 3px; right: 3px; width: 26px; height: 26px; }
  .product-camera-thumb-remove svg { width: 12px; height: 12px; }
  .product-camera-actions { gap: 6px; min-height: 91px; margin-top: 8px; }
  .product-camera-shutter { width: 88px; height: 88px; padding: 4px; border-width: 2px; }
  .product-camera-confirm { min-width: 94px; height: 44px; gap: 5px; padding: 0 11px; font-size: 12px; }
  .product-camera-confirm svg { width: 16px; height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-camera-focus, .product-camera-zoom-feedback { transition: none; }
  .product-camera-capture-feedback.is-visible { animation-duration: .01s; }
}
@media (max-height: 700px) {
  .product-camera-controls { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .product-camera-thumbnails { height: 76px; }
  .product-camera-thumb { height: 76px; flex-basis: 43px; width: 43px; }
  .product-camera-actions { min-height: 75px; margin-top: 5px; }
  .product-camera-shutter { width: 72px; height: 72px; }
}
