.product-file-upload { margin-top: 8px; }
.product-file-upload .product-file-picker { display: none !important; }
.product-file-upload .product-file-dropzone { display: flex; min-height: 132px; align-items: center; justify-content: center; padding: 24px; border: 2px dashed #aebdca; border-radius: 12px; background: linear-gradient(145deg, #fbfdff, #f2f7fb); color: #344454; text-align: center; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.product-file-upload .product-file-dropzone:hover, .product-file-upload .product-file-dropzone:focus, .product-file-upload .product-file-dropzone.is-dragover { border-color: #1976d2; background: #edf6ff; box-shadow: 0 8px 24px rgba(25, 118, 210, .12); outline: 0; transform: translateY(-1px); }
.product-file-prompt { display: flex; flex-direction: column; gap: 5px; pointer-events: none; }
.product-file-prompt strong { font-size: 15px; }
.product-file-prompt small { color: #708090; }
.product-file-icon { color: #1976d2; font-size: 30px; line-height: 1; }
.product-file-prompt.is-uploading { opacity: .65; }
.product-file-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.product-file-item { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #dce5ec; border-radius: 8px; background: #fff; }
.product-file-item.is-image { align-items: flex-start; }
.product-file-item-preview { display: block; flex: 0 0 72px; width: 72px; height: 72px; overflow: hidden; border: 1px solid #dce5ec; border-radius: 6px; background: #f5f7f9; }
.product-file-item-thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-file-item-preview:focus { outline: 2px solid #1976d2; outline-offset: 2px; }
.product-file-item-icon { font-size: 20px; }
.product-file-item-info { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.product-file-item-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-file-item-info small { color: #708090; }
.order-file-list { display: flex; flex-wrap: wrap; margin-top: 6px; }
.order-file-list .product-file-item { width: 280px; max-width: 100%; }
.order-file-list .product-file-item-info a { overflow-wrap: anywhere; }
.product-file-save-hint { display: block; margin-top: 8px; color: #6b7785; font-size: 12px; line-height: 1.45; }
.product-file-item.is-error { border-color: #e6a4a4; background: #fff8f8; }
.product-file-remove { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #f2f4f6; color: #66717b; font-size: 20px; line-height: 1; cursor: pointer; }
.product-file-remove:hover, .product-file-remove:focus { background: #fbe4e4; color: #b42318; outline: 0; }
.product-file-progress { height: 7px; margin-top: 12px; overflow: hidden; border-radius: 4px; background: #e7edf2; }
.product-file-progress[aria-hidden="true"] { display: none; }
.product-file-progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1976d2, #42a5f5); transition: width .15s ease; }
.product-file-progress-text { min-height: 20px; margin-top: 5px; color: #607080; font-size: 12px; text-align: right; }
.product-file-gallery { position: fixed; z-index: 1100; inset: 0; display: none; align-items: center; justify-content: center; padding: 48px 72px; background: rgba(12, 22, 32, .88); }
.product-file-gallery.is-open { display: flex; }
.product-file-gallery-figure { display: flex; min-width: 0; max-width: min(100%, 1100px); max-height: 88vh; margin: 0; flex-direction: column; align-items: center; gap: 12px; }
.product-file-gallery-image { display: block; max-width: 100%; max-height: 78vh; border-radius: 6px; box-shadow: 0 16px 48px rgba(0, 0, 0, .35); object-fit: contain; }
.product-file-gallery-caption { max-width: 80vw; overflow: hidden; color: #fff; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.product-file-gallery-close, .product-file-gallery-prev, .product-file-gallery-next { position: absolute; border: 0; color: #fff; background: rgba(255, 255, 255, .14); cursor: pointer; }
.product-file-gallery-close { top: 18px; right: 22px; width: 42px; height: 42px; border-radius: 50%; font-size: 30px; line-height: 1; }
.product-file-gallery-prev, .product-file-gallery-next { top: 50%; width: 48px; height: 64px; margin-top: -32px; border-radius: 8px; font-size: 42px; line-height: 1; }
.product-file-gallery-prev { left: 18px; }
.product-file-gallery-next { right: 18px; }
.product-file-gallery-close:hover, .product-file-gallery-close:focus, .product-file-gallery-prev:hover, .product-file-gallery-prev:focus, .product-file-gallery-next:hover, .product-file-gallery-next:focus { background: rgba(255, 255, 255, .28); outline: 2px solid #fff; outline-offset: 2px; }
.product-file-gallery-counter { position: absolute; bottom: 18px; left: 50%; color: #fff; font-size: 13px; transform: translateX(-50%); }
body.product-file-gallery-open { overflow: hidden; }
.product-file-gallery-prev:disabled, .product-file-gallery-next:disabled { visibility: hidden; }
@media (max-width: 640px) { .product-file-gallery { padding: 48px 52px; } .product-file-gallery-prev { left: 8px; } .product-file-gallery-next { right: 8px; } }
