.product-art.has-product-image:before,
.product-art.has-product-image:after{display:none}
.product-card-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}
.product-badge,.save-button{z-index:1}
.product-image-field{gap:10px}
.product-image-field>label{font-size:13px}
#productImagePreview{width:100%;overflow:hidden;border:1px solid #e8ebf2;border-radius:12px;background:#f3f5f9}
.product-image-preview{display:block;width:100%;height:190px;object-fit:cover}
.product-image-empty{height:190px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:#7e89a0}
.product-image-empty>span{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#e9edff;color:#6958df;font-size:21px}
.product-image-empty strong{font-size:13px;color:#48536d}
.product-image-empty small,.product-image-field>small{font-size:12px;line-height:1.5;color:#8791a6}
.product-image-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.product-image-actions .button{min-height:38px;font-size:13px;padding:0 14px}
.product-image-actions .text-action{font-size:13px}
.product-image-field textarea{min-height:70px}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.product-image-actions button:disabled{opacity:.6;cursor:wait}
.modal.product-editor-modal{width:min(680px,100%)}
.product-editor-modal .admin-edit-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.product-editor-modal .admin-edit-form>.field.full,
.product-editor-modal .admin-edit-form>button{grid-column:1/-1}
.product-editor-modal .admin-edit-form .field{gap:8px}
.product-editor-modal .admin-edit-form label{font-size:13px}
.product-editor-modal .admin-edit-form input,
.product-editor-modal .admin-edit-form select,
.product-editor-modal .admin-edit-form textarea{font-size:14px;padding:11px 12px}
.product-editor-modal .admin-edit-form textarea{min-height:90px}
.product-editor-modal .modal-head{margin-bottom:20px}
.product-editor-modal .modal-head p{font-size:13px}
.product-editor-modal .admin-edit-form>button{justify-self:start;min-height:42px;padding:0 20px}
@media(max-width:600px){.product-image-preview,.product-image-empty{height:155px}.product-image-actions{align-items:stretch}.product-image-actions .button{justify-content:center}}
@media(max-width:520px){.product-editor-modal .admin-edit-form{grid-template-columns:1fr}.product-editor-modal .admin-edit-form>.field.full,.product-editor-modal .admin-edit-form>button{grid-column:auto}}

/* Consistent product image frames with non-destructive admin crop controls. */
.product-art.has-product-image{height:auto;aspect-ratio:16/9;background:#f1f3f8}
.product-detail-visual.has-product-image{min-height:0;aspect-ratio:16/10;background:#f1f3f8}
.product-card-image{object-fit:contain;object-position:center;transform:translate(var(--crop-x,0%),var(--crop-y,0%)) scale(var(--crop-zoom,1));transform-origin:center center}
#productImagePreview{position:relative;aspect-ratio:16/9;height:auto;max-height:320px;touch-action:none;cursor:grab;background:#eef1f7}
#productImagePreview.is-cropping{cursor:grabbing}
.product-image-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;transform:translate(var(--crop-x,0%),var(--crop-y,0%)) scale(var(--crop-zoom,1));transform-origin:center center;pointer-events:none;user-select:none}
.product-image-empty{position:absolute;inset:0;height:auto}
.image-crop-handle{position:absolute;left:10px;bottom:10px;z-index:2;padding:6px 9px;border:1px solid #ffffffb8;border-radius:7px;background:#17213ccf;color:#fff;font-size:12px;font-weight:600;pointer-events:none}
.image-crop-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.image-crop-controls>label{font-size:13px;font-weight:600}
.image-crop-controls input[type=range]{flex:1;min-width:120px;accent-color:#6958df}
.image-crop-controls .text-action{font-size:13px}
.image-crop-controls button:disabled{opacity:.45;cursor:not-allowed}
.dark #productImagePreview{background:#252a40;border-color:#414860}
.dark .product-image-empty{color:#c0c8da}
.dark .product-image-empty strong{color:#e4e8f3}
.dark .product-image-empty small,.dark .product-image-field>small{color:#b0bad0}
.dark .image-crop-controls>label{color:#e0e5f2}
@media(max-width:600px){.product-art.has-product-image{height:auto;aspect-ratio:16/9}.product-detail-visual.has-product-image{aspect-ratio:16/10}.product-image-preview,.product-image-empty{height:auto}.image-crop-controls{gap:9px}}
