/* ── PP Product Image Upload ──────────────────────────────────────── */

.pp-upload-field {
    margin: 18px 0;
}

.pp-upload-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.pp-required {
    color: #e2401c;
}

/* ── Dropzone ────────────────────────────────────────────────────── */

.pp-dropzone {
    border: 2px dashed #c3c4c7;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
    background: #fafafa;
    outline: none;
}

.pp-dropzone:hover,
.pp-dropzone:focus {
    border-color: #2271b1;
    background: #f0f6fc;
}

.pp-dropzone.pp-dragover {
    border-color: #2271b1;
    background: #e8f0fe;
    border-style: solid;
}

.pp-dropzone.pp-uploading {
    pointer-events: none;
    opacity: 0.7;
}

.pp-dropzone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.pp-upload-icon {
    color: #8c8f94;
    margin-bottom: 4px;
}

.pp-dropzone:hover .pp-upload-icon,
.pp-dropzone:focus .pp-upload-icon {
    color: #2271b1;
}

.pp-dropzone-text {
    font-size: 14px;
    color: #50575e;
}

.pp-dropzone-hint {
    font-size: 12px;
    color: #8c8f94;
}

/* ── Progress Bar ────────────────────────────────────────────────── */

.pp-progress {
    margin-top: 8px;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.pp-progress-bar {
    height: 100%;
    width: 0%;
    background: #2271b1;
    border-radius: 3px;
    transition: width 0.2s ease;
}

/* ── Preview ─────────────────────────────────────────────────────── */

.pp-preview {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.pp-preview img {
    max-width: 180px;
    max-height: 180px;
    border-radius: 6px;
    border: 1px solid #ddd;
    display: block;
}

.pp-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #d63638;
    color: #fff;
    border: 2px solid #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.15s;
}

.pp-remove:hover {
    background: #a41e1e;
}

/* ── Validation Error ────────────────────────────────────────────── */

.pp-upload-field.pp-error .pp-dropzone {
    border-color: #d63638;
    background: #fcf0f1;
}

.pp-error-message {
    color: #d63638;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

.pp-upload-field.pp-error .pp-error-message {
    display: block;
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .pp-dropzone {
        padding: 20px 14px;
    }

    .pp-preview img {
        max-width: 140px;
        max-height: 140px;
    }
}
