/* Stage 4: optional product photos — compact mobile-first editor and responsive thumbnails. */
.product-card {justify-content:flex-start;gap:12px;}
.product-card-title {min-width:0;flex:1;}
.product-thumb {flex:none;width:62px;height:62px;border-radius:14px;background:#f1f4f8;object-fit:cover;display:block;border:1px solid #ecf0f4;}
.product-thumb-empty {display:grid;place-items:center;color:#b2bece;font-size:28px;font-weight:400;}
.product-card .product-meta {flex:none;margin-left:auto;}
.product-detail-photo {width:100%;height:auto;max-height:380px;aspect-ratio:4/3;object-fit:contain;border-radius:18px;background:#f4f6f9;margin-bottom:20px;display:block;}
.product-photo-form {margin-top:12px;}
.product-photo-editor {min-width:0;padding:0;margin:0;border:0;}
.product-photo-editor legend {padding:0;margin:0 0 12px;font-size:15px;font-weight:800;color:var(--text);}
.photo-preview {width:100%;min-height:180px;height:220px;background:#f3f6fa;border:1px solid #e8edf3;border-radius:18px;display:grid;place-items:center;overflow:hidden;}
.photo-preview img {display:block;width:100%;height:100%;object-fit:contain;}
.photo-placeholder {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#94a3b8;}
.photo-placeholder span {font-size:48px;line-height:1;}
.photo-placeholder small {font-size:13px;}
.photo-actions {display:flex;align-items:stretch;gap:10px;margin-top:12px;flex-wrap:wrap;}
.photo-picker {position:relative;display:flex!important;align-items:center!important;justify-content:center;flex-direction:row!important;gap:5px!important;flex:1;min-width:140px;cursor:pointer;font-size:13px!important;}
.photo-picker:focus-within {outline:3px solid #82aafa;outline-offset:2px;}
.photo-file-input {position:absolute;inset:0;width:100%!important;height:100%!important;opacity:0;cursor:pointer;padding:0!important;margin:0!important;}
.photo-hint {font-size:12px;line-height:1.5;margin:8px 0 0;}
.photo-remove {display:flex!important;flex-direction:row!important;gap:9px!important;align-items:center;margin:13px 0 0;font-size:13px!important;color:#a63a31;font-weight:650;cursor:pointer;}
.photo-remove input {width:19px!important;min-height:19px!important;height:19px!important;accent-color:#a63a31;margin:0;}
@media(max-width:420px) {.product-card {padding:10px;gap:9px;} .product-thumb {height:53px;width:53px;border-radius:11px;} .photo-actions {gap:8px;} .photo-picker {min-width:110px;padding:12px 9px;}}
