.product-gallery{display:grid;gap:6px;min-width:0}.product-gallery img,.product-gallery video{width:100%;height:116px;object-fit:contain;background:var(--panel);border-radius:10px}.product-gallery img[hidden],.product-gallery video[hidden]{display:none}.gallery-controls{display:flex;align-items:center;justify-content:center;gap:6px}.gallery-controls .btn{padding:2px 10px;min-height:32px;font-size:20px}.gallery-controls span{font-size:12px;white-space:nowrap;color:var(--muted)}.cart-gallery{width:112px;max-width:100%}.gallery-empty{display:block;padding:16px 4px;color:var(--muted);font-size:12px;text-align:center}.draft-line .cart-gallery{grid-column:1;grid-row:1}.draft-line:has(.cart-gallery){grid-template-columns:112px minmax(0,1fr) auto auto}.draft-line:has(.cart-gallery)>span:first-of-type{min-width:0;overflow-wrap:anywhere}.cart-stock-label{display:block;margin-top:6px;line-height:1.5;font-size:12px;color:var(--muted)}.checkout-cart{display:grid;gap:12px;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--border)}.checkout-cart h2{margin:0;font-size:20px}.checkout-cart .cart-line{display:grid;grid-template-columns:112px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border)}.checkout-cart small{display:block}.checkout-cart .cart-line>div{min-width:0;overflow-wrap:anywhere}.product-detail-media .product-gallery{width:100%;padding:12px}.product-detail-media .product-gallery img,.product-detail-media .product-gallery video{height:280px}.menu-card-media video{width:100%;height:100%;object-fit:contain;min-width:0;min-height:0}.product-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px}.product-photo-card{display:grid;align-content:start;gap:8px;border:1px solid var(--border);padding:12px;border-radius:12px;min-width:0}.product-card .product-photo-card img,.product-card .product-photo-card video{width:100%;height:130px;object-fit:contain}.product-photo-card input[type=file]{max-width:100%}.photo-selection{color:var(--muted);font-size:12px}.photo-selection img{width:80px;height:80px;object-fit:contain;margin:4px;border:1px solid var(--border);border-radius:8px}@media(max-width:600px){.draft-line:has(.cart-gallery){grid-template-columns:88px minmax(0,1fr) auto}.draft-line:has(.cart-gallery)>span:first-of-type{grid-column:2/-1}.draft-line:has(.cart-gallery)>.draft-line-price{grid-column:2}.draft-line:has(.cart-gallery)>.draft-remove{grid-column:3}.cart-gallery{width:88px}.checkout-cart .cart-line{grid-template-columns:88px minmax(0,1fr) auto;gap:8px}}
.product-camera{width:min(640px,94vw);max-height:92vh;overflow:auto;border:1px solid var(--border);border-radius:14px;background:var(--panel);color:inherit;padding:18px}
.product-camera::backdrop{background:rgba(0,0,0,.45)}
.camera-heading,.camera-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.camera-heading h3{margin:0}
.product-camera video{display:block;width:100%;max-height:55vh;object-fit:contain;background:#111;border-radius:10px;margin:12px 0}.product-camera select{max-width:100%;width:100%}
#cameraDeviceField[hidden],#cameraPhotos[hidden],#cameraNative[hidden]{display:none}
